Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FilterEditorCommands.ApplyFilter Property

Applies the filter criteria to the source control the FilterEditorControl is bound to.

Namespace: DevExpress.Xpf.Core.FilteringUI

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public ICommand ApplyFilter { get; }

#Property Value

Type Description
ICommand

A command that implements the ICommand.

#Remarks

Corresponding method: FilterEditorControl.ApplyFilter

#Example

The code sample below shows the FilterEditorControl bound to the GridControl. The ApplyFilterButton with the FilterEditorCommands.ApplyFilter command allows you to apply filter criteria specified in the FilterEditorControl to the GridControl.

<dxfui:FilterEditorControl x:Name="filterEditor" Context="{Binding Path=FilteringContext, ElementName=filterGrid}"/>
<!-- ... -->
<Button Name="ApplyFilterButton" Content="Apply Filter" Command="{Binding Commands.ApplyFilter, ElementName=filterEditor}" />
<!-- ... -->
<dxg:GridControl x:Name="filterGrid" ... />
See Also