FlexGrid for WinForms
Customizing the Filtering UI
Show AllShow All
Hide AllHide All

We believe the default filtering behavior and UI will address the vast majority of scenarios that involve column filtering. However, you can use the column filter classes independently, implementing your own custom user interface.

For example, the code below shows how you can use the ConditionFilter class to implement an iTunes-style search box for the C1FlexGrid. This type of search allows users to type in a value and automatically filters the grid rows to show the rows that contain the search string in any column.

To implement the iTunes-style search, we start with a text box that contains the text that will be used as a filter parameter. We also define a timer that will apply the filter a few milliseconds after the users stops typing into the text box:

To write code in C#

Now that the timer is configured, all we need to do is create and apply the filter when the timer ticks:

To write code in C#

See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback