Using the WPF Grid's API, you can apply any filter criteria programmatically. End-users can also modify the currently applied filter condition using the following visual elements.
Built-in Filter Editor
You and your end-users can build complex filter criteria with ease using our WPF filter criteria builder control.
Much like its WinForms and ASP.NET counterparts, this control automatically determines associated fields and types in order to provide appropriate data field name and value editor suggestions when generating filter conditions.
At runtime, end-users can invoke the Filter Editor dialog using the column header’s context menu or filter panel button.
Microsoft Excel style Filter Dropdowns
Column headers can display glyphs that invoke Excel style data filtering dropdowns. You can choose between a listbox based dropdown allowing single-value selection and checked list dropdown, allowing multiple selection.
You can customize these filter dropdowns by adding or removing entries and specifying handlers for the newly added items.
Filter Dropdown Templates
By customizing grid templates, you can implement any filter control. For instance, our demos describe how to implement a track bar control to filter numeric values.
An alternative to filter dropdowns is the Auto-Filter Row. This row is displayed above data rows and allows users to filter data by entering values (or value portions) into corresponding data cells. To facilitate user input, the Auto-Filter row uses the same editors as those assigned to individual columns.
When a filter condition is applied, the grid can show a panel at the bottom. This panel displays the currently applied criteria and allows end-users to temporarily disable or cancel filtering.
Most Recently Used Filter List
The Most Recently Used (MRU) Filter List keeps track of filter conditions applied at runtime so that end-users no longer have to re-construct past criteria. The list can be displayed within the filter panel for criteria applied to a view or within a single column's filter dropdown.