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

FilterBehavior.ShowFilterEditor(String) Method

Invokes the Filter Editor.

Namespace: DevExpress.Xpf.Core.FilteringUI

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void ShowFilterEditor(
    string defaultPropertyName
)

#Parameters

Name Type Description
defaultPropertyName String

The field name of a column for which the Filter Editor creates conditions by default.

#Remarks

Tip

Corresponding Command: FilterBehavior.ShowFilterEditorCommand

Run Demo: FilterBehavior - Filter Editor Dialog

<Button Content="Show Filter Editor"
        Command="{Binding ElementName=filterBehavior, Path=ShowFilterEditorCommand}">
    <dxmvvm:Interaction.Behaviors>
        <dxfui:FilterBehavior x:Name="filterBehavior" FilterString="[Year] >= 2014 And Sales > 1"
                              ItemsSource="{Binding ElementName=chart, Path=DataSource}">
            <dxfui:FilterField FieldName="Company"/>
            <dxfui:FilterField FieldName="Year"/>
            <dxfui:FilterField FieldName="Sales" Caption="Sales, millions of USD"/>
            <dxfui:FilterField FieldName="Charges" Caption="Charges, millions of USD"/>
        </dxfui:FilterBehavior>
    </dxmvvm:Interaction.Behaviors>
</Button>
<!-- -->
<TextBlock Text="{DXBinding '@e(filterBehavior).FilterDisplayText ?? `No filter`'}"/> 
See Also