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

AutoFilter GridGroupingControl

Thread ID:





30871 Jun 24,2005 09:56 PM UTC Jun 24,2005 11:38 PM UTC WinForms 3
Tags: GridControl
Asked On June 24, 2005 09:56 PM UTC

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 10:14 PM UTC

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 10:36 PM UTC

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 11:38 PM UTC

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.

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