I have a problem with a DataRow that I\'m really struggling with.
The datarow is read in from an Excel spreadsheet using an OleDbConnection.
If I try to sele
You can get the column value in VB.net
Dim row As DataRow = fooTable.Rows(0)
Dim temp = Convert.ToString(row("ColumnName"))
And in C# you can use Jimmy's Answer, just be careful while converting it to ToString()
. It can throw null exception if the data is null
instead Use Convert.ToString(your_expression)
to avoid null exception reference