FlexGrid for WinForms
Managing filters programmatically
Show AllShow All
Hide AllHide All

As we mentioned earlier in this document, setting the grid's AllowFiltering property to True is enough to enable column filtering on all columns. In many cases however, you may want finer control over filtering. This can be achieved by modifying the AllowFiltering and Filter properties on individual columns.

For example, the code below enables filtering but restricts the filtering to columns of type string:

To write code in C#

You can customize the filtering process further by creating filters and assigning them to columns, or by retrieving existing filters and modifying their properties. For example, the code below creates a ConditionFilter, configures it to select all items that start with the letter "C", and then assigns the new filter to the "ProductName" column:

To write code in C#

See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback