We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to remove the GroupedHeaders after modifying any Column?

Description:

After Grouping, when any change is made in the columns, that is, when expressions are added or columns are removed, then the modifications are not reflected in the GroupDropArea. You need to reset the Grouped Header collection so that the modification 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 repopulated the Grouped Columns. In the following example, a column Id is grouped and then it is removed from the grid.

C#

 

VB

 

Sample Links

C# : Grouped_Columns_Reset_CS

VB : Grouped_Columns_Reset_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5269 07/29/2015 07/29/2015 Windows Forms GridGroupingControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.