datatable grouping

Ex : var masterGroups = (from row in dtRetCls.AsEnumerable()
group row by row["GroupDescription"] into groupedTable
select new
{
x = groupedTable.Key
}
).ToList();

Select data rows

DataRow[] drx = dtRetCls.Select("GroupDescription= '" + item.x + "' ");

Read Users' Comments (0)

0 Response to "datatable grouping"

Post a Comment