Articles in this section
Category / Section

How to clear a Group in ASP.NET WebForms GridGroupingControl?

1 min read

 

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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied