Last post Jun 11, 2012 09:37 AM by Sparkers
Jun 11, 2012 09:30 AM|cenk1536|LINK
I have a datatable and in this datatable I would like to get a specific column. Lets say there is a Time column, how can I get it?
Jun 11, 2012 09:37 AM|Rajneesh Verma|LINK
yourDataTable.Rows[ ndx ][ column ]
where ndx is the row number (starting at 0) where column can be a DataColumn object, an index (column n), or the name of the column (a string)
yourDataTable.Rows[ 0 ][ 0 ] yourDataTable.Rows[ 0 ][ ColumObject ] yourDataTable.Rows[ 0 ][ "ColumnName" ]
to test for null, compare to DBNull.Value;
Got from http://stackoverflow.com/questions/1094307/how-do-you-get-a-specific-value-from-a-system-data-datatable-object
Jun 11, 2012 09:37 AM|Sparkers|LINK
Refer to the following articles..