I have a result set in the form of DataTable.
The data table has 2 fields named startTime and endTime.
I need to get the row with max difference in the startTime and endTime fields.
I think this can be easily implemented using Linq but don’t know how to do the same on data table.
Linq To DataSet is what you are looking for.
If you call AsEnumerable() on your datatable you can write a normal Linq query to it.