Hi Krefftc,
Basically, the approach will be the same. The only difference would be that you will need to use
NeedDataSource, instead of the AccessDataSource. The rest of the functionality is handled in the GroupsChanging event handler, as shown below:
.cs
protected void RadGrid1_GroupsChanging(object source, GridGroupsChangingEventArgs e) |
{ |
if (e.Action == GridGroupsChangingAction.Group) |
{ |
if (RadGrid1.MasterTableView.GroupByExpressions.Count > 0) |
{ |
e.Canceled = true; |
RadGrid1.MasterTableView.GroupByExpressions.Clear(); |
RadGrid1.MasterTableView.GroupByExpressions.Add(e.Expression); |
} |
|
RadGrid1.MasterTableView.Rebind(); |
} |
} |
I hope this helps.
Have a nice day,
Yavor
the
telerik team