enter image description hereI have this code for grouping and suming column:
var groupedData = from b in showit.AsEnumerable()
group b by b.Field<string>("Key") into g
select new
{
KeyName = g.Key,
Calls_Chats_Answered = g.Sum(x => x.Field<int>("Calls_Chats_Answered"))
};
How do I pass the groupedData
to datatable ?