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.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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