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

FilterEditorControl.PropertyName Property

Gets or sets the field name of a column for which the FilterEditorControl creates conditions by default.

Namespace: DevExpress.Xpf.Core.FilteringUI

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public string PropertyName { get; set; }

#Property Value

Type Description
String

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

#Remarks

When end users add a condition, the FilterEditorControl creates a condition for the GridControl‘s first column. Then end users can select a column in the column’s drop-down list:

<dxfui:FilterEditorControl x:Name="filterEditor" Context="{Binding Path=FilteringContext, ElementName=filterGrid}" />
<!-- ... -->            
<dxg:GridControl x:Name="filterGrid" ItemsSource="{Binding Path=Invoices, Source={StaticResource NWindDataLoader}}">
    <dxg:GridControl.Columns>
        <dxg:GridColumn x:Name="colID" FieldName="OrderID" ... />
        <dxg:GridColumn x:Name="colProduct" FieldName="ProductID" ... />
        <!-- ... -->
    </dxg:GridControl.Columns>
</dxg:GridControl>

You can specify a column for which the FilterEditorControl creates conditions. To do this, set the PropertyName property to the column’s field name:

<dxfui:FilterEditorControl x:Name="filterEditor" 
                           Context="{Binding Path=FilteringContext, ElementName=filterGrid}" PropertyName="ProductID" />

See Also