Page 1 of 1

Getting current row column value

Posted: Fri 05 Sep 2008 17:02
by rakgol_a
Hi .Net Newbiw,

How does one get current row value of a column from pgSqlDataTable in code? Like

label1.Text = pgSqlDataTable1.Column["CompanyNameField"].Value;

I have pgSqlDataTable1 wired to the pgSqlConnection1 and pgSqlCommand1
which select the data and displays it on the grid.

Regards,
Alfred