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.

GGC disable groupchanging and filter event

Thread ID:





73980 May 27,2008 06:54 PM Jun 30,2008 07:21 AM Windows Forms 3
Tags: GridControl
Pravin Patel
Asked On May 27, 2008 06:54 PM

How can I disable events when a column is dragged in/out of grid group drop area, and filter set/unset so that I can select columns and filters and then click my load/refresh button so that grouping and filters are applied to avoid grouing/filter applied each time a column is added/removed and filter is set/unset


haneefm [Syncfusion]
Replied On May 28, 2008 01:47 AM

Hi Pravin,

You can avoid columns being grouped at runtime by handling the TableControlQueryAllowGroupByColumn event of the GridGroupingControl. This will help you in preventing the columns being dragged to the GroupDropArea to group according to them.

void gridGroupingControl1_TableControlQueryAllowGroupByColumn(object sender, GridQueryAllowGroupByColumnEventArgs e)
e.AllowGroupByColumn = false;


To prevent the specified column being grouped by setting this code

this.gridGroupingControl1.TableDescriptor.Columns[“ColumnName”].AllowGroupByColumn = false;

For Filter:
Use this code:
this.gridGroupingControl1.TableDescriptor.Columns[“ColumnName”].AllowFilter = false;

Best regards,

Pravin Patel
Replied On May 28, 2008 01:19 PM

Hi Haneef,

I want users to allow drag/drop column from grid group drop area, set group order also allow set/unset filters and once done with all selection then do grouping/filtering on button click.


Sri Rajan [Syncfusion]
Replied On June 30, 2008 07:21 AM

Hi Pravin,

Thank you for your continued interest in Syncfusion products.

Please refer the below code to add group and filter through button click event.

private void buttonAdv1_Click(object sender, EventArgs e)
this.gridGroupingControl1.TopLevelGroupOptions.ShowFilterBar = true;
this.gridGroupingControl1.TableDescriptor.Columns["Col1"].AllowFilter = true;

Please let me know if this helps.

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.

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.