This is a migrated thread and some comments may be shown as answers.

Get GridBoundColumns Values which are in Grouping Panel of Rad Grid

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajender
Top achievements
Rank 1
Rajender asked on 28 Nov 2013, 09:46 AM
HI,

Is there any way to get the list of GridBoundColumn DataField or UniqueName value which are in Grouping panel list. My Requirement is to get the columns which are in grouping panel and save it in Database or any where so that later those columns i need to dynamically add to grouping panel.

Thanks and Regards,
Rajender.A

1 Answer, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 03 Dec 2013, 08:37 AM
Hi Rajender,

Basically the group functionality is performed by using the data fields and you could get the fields by using the following approach. Keep in mind that the column unique name might differs from the name of the data field.
foreach (GridGroupByExpression group in RadGrid1.MasterTableView.GroupByExpressions)
{
    foreach (GridGroupByField field in group.GroupByFields)
    {
          //you could get the filed name by using field.FieldName
    }
}

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Rajender
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or