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.

AutoFilter GridGroupingControl

Thread ID:





30871 Jun 24,2005 05:56 PM Jun 24,2005 07:38 PM Windows Forms 3
Tags: GridControl
Asked On June 24, 2005 05:56 PM

Hi, Is there an easy way to: 1. Disable the population of a filter dropdown with the values from a column it belongs to, so it would contail only "empty", "all" and "custom". 2. Intercepting the event when "custom" clicked? Thank you

Administrator [Syncfusion]
Replied On June 24, 2005 06:14 PM

Here is a forum thread that has a sample showing how you can customize the filterbar cell in a GridGroupingControl. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=25998

Replied On June 24, 2005 06:36 PM

Thank you. According to this example I need to overwrite the FillWithChoices, something like this: private bool autoFilter=true; public override void FillWithChoices(ListBox listBox, GridStyleInfo style, out bool exclusive) { base.FillWithChoices (listBox, style, out exclusive); if(!this.AutoFilter) { int count=listBox.Items.Count; for(int i=3; i

Administrator [Syncfusion]
Replied On June 24, 2005 07:38 PM

In the method you listed, you can cast the style to a GridTableCellStyleInfo and from there you can get the column. Then you can conditionally change the droplist. GridTableCellStyleInfo tStyle = style as GridTableCellStyleInfo; string field = tStyle.TableCellIdentity.Column.Name;


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.