Hi,
Can anyone tell how to implement Group By on datatables using linq in telerik (C# Application).
I have written query as follows:
Can anyone tell how to implement Group By on datatables using linq in telerik (C# Application).
I have written query as follows:
var query = from
dataitem in combinedDataTable.AsEnumerable()
group dataitem by dataitem.Field<string>("IONumber") into r
select new
{
IONumber = r.Field<
string>("IONumber"),
IOName = r.Field<string>("IOName")
}
I am getting error on 'group' saying:
'Telerik.Web.UI.GridDynamicQueryable.GroupBy(System.Linq.IQueryable, string, string, params object[])' is inaccessible due to its protection level
Can anyone suggest how to update this query to work fine? (I am using telerik 2009)