I am very new in LINQ and trying group by with where condition.
Below is my code working fine without where condition.
List<DataTable> result = dt.AsEnumerable()
.GroupBy(x => x.Field<int>("row_Id"))
.Select(grp => grp.CopyToDataTable())
.ToList();
In my datatable dt getting this data.
row_id name
0 Mazhar
0 Raj
1 Khan
1 Ravi
I need to separate row_id=0 and row_id=1 data.
wherecondition?GroupBydoes what you explained.