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

How can I set GGC filters, groupings from code commands?

Thread ID:

Created:

Updated:

Platform:

Replies:

56168 Feb 9,2007 10:26 PM UTC Feb 12,2007 05:17 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 9, 2007 10:26 PM UTC

Hi there,
How can I add a filter for drilling down on the data in a GGC? I would need to attach combo boxes to the cells, but I'm unsure how to do this.

Also, can I use grid grouping or other methods from code directly if I want, without clicking or dropping columns etc from the grid?

Thank vm.

Administrator [Syncfusion]
Replied On February 9, 2007 11:27 PM UTC

Hi,

You can add the FilterBar by setting ShowFilterBar property to true. If you want to enable the filter on the column then you can set the AllowFilter property to true. Please add the code below in the Form_Load event, this will fetch you the desired feature.

this.gridGroupingControl1.TableDescriptor.TopLevelGroupOptions.ShowFilterBar = true;
foreach(GridColumnDescriptor gcd in this.gridGroupingControl1.TableDescriptor.Columns)
{
gcd.AllowFilter = true;
}

Thanks for your interest in Syncfusion Products.

Regards,
Haneef

Administrator [Syncfusion]
Replied On February 12, 2007 05:17 PM UTC

Thank you Haneef.

>Hi,

You can add the FilterBar by setting ShowFilterBar property to true. If you want to enable the filter on the column then you can set the AllowFilter property to true. Please add the code below in the Form_Load event, this will fetch you the desired feature.

this.gridGroupingControl1.TableDescriptor.TopLevelGroupOptions.ShowFilterBar = true;
foreach(GridColumnDescriptor gcd in this.gridGroupingControl1.TableDescriptor.Columns)
{
gcd.AllowFilter = true;
}

Thanks for your interest in Syncfusion Products.

Regards,
Haneef

CONFIRMATION

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.

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

;