wpf-400736-common-concepts-filtering.md
The GridControl and TreeListControl provide the following features to allow users to filter its data:
Run Demo: Filtering in the GridControl Run Demo: Filtering in the TreeListControl
The PivotGridControl provides the following features to allow users to filter its data:
Run Demo: Excel Style Filtering
If a data-bound control does not have integrated filter elements (for example, Charts and Data Editors), you can use the FilterBehavior to allow the Filter Editor / Filter Elements to filter the control’s data:
Tip
Topic : FilterBehavior
The following code sample shows how to use the FilterBehavior to allow the Filter Elements to work with the ListBoxEdit.
<dxe:ListBoxEdit Name="listBoxEdit" ItemsSource="{Binding Products}"
FilterCriteria="{Binding ElementName=filterBehavior, Path=ActualFilterCriteria}"/>
<!-- -->
<dxfui:CheckedListFilterElement FieldName="CategoryName">
<dxmvvm:Interaction.Behaviors>
<dxfui:FilterBehavior x:Name="filterBehavior"
ItemsSource="{Binding ElementName=listBoxEdit, Path=ItemsSource}">
<dxfui:FilterField FieldName="CategoryName">
<dxe:ComboBoxEditSettings ItemsSource="{Binding Categories}"/>
</dxfui:FilterField>
</dxfui:FilterBehavior>
</dxmvvm:Interaction.Behaviors>
</dxfui:CheckedListFilterElement>