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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Automatically Hiding Group By Column

Thread ID:





57066 Feb 25,2007 11:51 PM UTC Feb 26,2007 03:41 PM UTC WinForms 1
Tags: GridControl
Asked On February 25, 2007 11:51 PM UTC

Is there a property of the GGC that will automatically hide the column when the grid is grouped by that column. e.g. if my grid is grouped by date it seems logical that you may not be want to see the date column (since you can see from the group header what the date is).

If not how would I go about hiding the currently grouped column?

Administrator [Syncfusion]
Replied On February 26, 2007 03:41 PM UTC

Hi Joel,

You can handle the GroupedColumns.Changing event of the grid and use the VisibleColumns property of the grid to manage the display columns of the grid. Here is a code snippet.

this.gridGroupingControl1.TableDescriptor.GroupedColumns.Changing +=new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changing);

private void GroupedColumns_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
switch( e.Action)
case Syncfusion.Collections.ListPropertyChangedType.Insert:
SortColumnDescriptor icolumn = e.Item as SortColumnDescriptor;
case Syncfusion.Collections.ListPropertyChangedType.Remove:
SortColumnDescriptor rcolumn = e.Item as SortColumnDescriptor;

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon