[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Collapse]Common Concepts
  [Expand]Themes
  [Expand]Images
  [Expand]Printing and Exporting
  [Expand]Saving and Restoring Layouts
   Typed Styles
  [Expand]Touch Support
  [Expand]Expressions
   Filtering
  [Expand]Formatting Values
   Prism Adapters
  [Expand]Data Sources
  [Expand]Performance Improvement
   XAML Namespaces
 [Expand]MVVM Framework
 [Expand]Controls and Libraries
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Filtering

Expanded GridControl / TreeListControl

The GridControl and TreeListControl provide the following features to allow users to filter its data:

Expanded PivotGridControl

The PivotGridControl provides the following features to allow users to filter its data:

Tip

Demo: Excel Style Filtering

Requires a WPF Subscription. Download

Expanded Other Data-bound Controls

If a data-bound control does not provide a filtering UI (for example, Charts and Data Editors), you can use the FilterBehavior to allow the Filter Editor (see FilterEditorControl) / Filter Elements (see FilterElement) to filter the control's data:

  1. Add the FilterBehavior to the behaviors of the Filter Editor (see FilterEditorControl) / Filter Elements (see FilterElement) or a container that holds them. The FilterBehavior automatically specifies the FilterEditorControl.Context / FilterElement.Context properties.
  2. Specify the FilterBehavior.ItemsSource property to allow the Filter Editor (see FilterEditorControl) / Filter Elements (see FilterElement) to get unique filter values.
  3. Specify the FilterBehavior.Fields property to configure display fields, edit settings, and predefined filters.
  4. The FilterBehavior creates the FilterBehavior.ActualFilterCriteria object. Do one of the following:

Tip

Topic: FilterBehavior (see FilterBehavior)

The following code sample shows how to use the FilterBehavior to allow the Filter Elements (see FilterElement) to work with the ListBoxEdit.

Tip

Demo: FilterBehavior

Requires a WPF Subscription. Download

Is this topic helpful?​​​​​​​