I\'m trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example:
Try this simple line of query:
var result=myDataTable.AsEnumerable().Where(myRow => myRow.Field("RowNo") == 1);