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. Image for the cookie policy date
close icon

Case-insensitive filtering on GridGroupingControl (Windows Forms)

Using the Windows Forms GridGroupingControl filter bar I would like to have filtering work in a case-insensitive manner; for example if there were rows with "Black", "BLACK", and "black", they would all be returned if the user chose "black" on the filter combobox.
Do I need to create a custom filter to do this?

1 Reply

JJ Jisha Joy Syncfusion Team July 13, 2009 05:31 AM UTC

Hi John,

You could use the Dynamic Filter feature of the Grid Grouping control to achieve the case insensitive filtering. This filter implements a custom filter bar to be wired with the Grid Grouping control by replacing the default filter bar. The existing filter bar logic is extended to make the filter easy to use. It displays filtered results as you type each character.

Code to invoke the dynamic filter:

GridDynamicFilter filter = new GridDynamicFilter();
filter.WireGrid(gridGroupingControl1);

//To remove dynamic filter
filter.UnWireGrid(gridGroupingControl1);

Please see the following sample from our sample browser:

..\my documents\syncfusion\essentialstudio\7.2.0.20\Windows\Grid.Grouping.Windows\Samples\2.0\Filters and Expressions\Dynamic Filter Demo\cs

Please let me know if this helps.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon