How to clear a Group in ASP.NET WebForms GridGroupingControl?
The Clear method of GroupedColumns will clear all the grouped columns in the GridGroupingControl. It is also possible to remove a particular column form grouping, this is achived by RemoveAt method of GroupedColumns this method takes the index of the column which is to be removed from grouping, as its parameter. Please refer the below code snippets which illustrates this.
To Clear all the grouped columns:
C#
this.GridGroupingControl1.TableDescriptor.GroupedColumns.Clear();
VB
Me.GridGroupingControl1.TableDescriptor.GroupedColumns.Clear()
To remove a specific column from grouping:
C#
this.GridGroupingControl1.TableDescriptor.GroupedColumns.RemoveAt(0);
VB
Me.GridGroupingControl1.TableDescriptor.GroupedColumns.RemoveAt(0)
Sample:
https://help.syncfusion.com/support/samples/kb/Grid.Web/6.1.0.34/GGClearGroups/ClearGroups.zip