var results = from myRow in myDataTable where results.Field("RowNo") == 1 select results;
LINQ operates against sets that implement IEnumerable, which a datatable does not support by default. However, using myDataTable.AsEnumberable() will convert the results to the proper format so LINQ can be used.
Register Hereor login if you are already a member
Discuss This Question: 1  Reply