Here I am going to explain how to get list of group columns from code behind in telerik radgrid.
The below tutorial helps us to get list of group columns from telerik radgrid. For reports we are able to save the group columns in database and also we can apply when next time we opening the report grid
string groupColumns = "";
int i = 0;
foreach (GridGroupByExpression group in radReports.MasterTableView.GroupByExpressions)
{
foreach (GridGroupByField field in group.GroupByFields)
{
if (i != 0)
{
groupColumns = groupColumns + "," + field.FieldName;
}
else
{
groupColumns = field.FieldName;
}
i++;
}
}
