Articles in this section
Category / Section

How to remove the grouped headers in WinForms GridGroupingControl?

2 mins read

Grouped header


After Grouping, when any change is made to the columns, such as adding expressions or removing columns, the modifications are not reflected in the GroupDropArea. You need to reset the Grouped Header collection so that the modifications done in the columns can also be reflected in the GroupDropArea.

 

Solution:

You can use the GroupedColumns.Reset method when the changes are done in the columns, to repopulate the Grouped Columns. In the following example, a column Id is grouped and then it is removed from the grid.

 

C#

//Resets the Grouped Columns.
this.gridGrouping.TableDescriptor.GroupedColumns.Reset(); 

VB

'Resets the Grouped Columns.
Me.gridGrouping.TableDescriptor.GroupedColumns.Reset() 

Samples:

C#: Grouped_Columns_Reset_CS

VBGrouped_Columns_Reset_VB

  

Conclusion

I hope you enjoyed learning how to remove the grouped headers in WinForms GridGroupingControl.

You can refer to our WinForms GridGroupingControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data.

 

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridGroupingControl and other WinForms components.

 

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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