I am using Linq to dataset to query a datatable. If i want to perform a group by on \"Column1\" on data table, I use following query
var groupQuery = from ta
You should create an anonymous type to do a group by multiple columns:
var groupQuery = from table in MyTable.AsEnumerable()
group table by new { column1 = table["Column1"], column2 = table["Column2"] }
into groupedTable
select new
{
x = groupedTable.Key, // Each Key contains column1 and column2
y = groupedTable.Count()
}