Skip to main content

PropertyGridControl.FilterCriteria Property

Gets or sets the grid’s filter criteria. This is a dependency property.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.1.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

Declaration

public CriteriaOperator FilterCriteria { get; set; }

Property Value

Type Description
CriteriaOperator

The filter criteria.

Remarks

Use the FilterCriteria property to create a filter expression that consists of multiple conditions, and apply it to the grid. The PropertyGridControl clears applied filters when you set the FilterCriteria property to a new value.

You can use the Criteria Language Syntax and properties of the RowInfo object to create a filter expression:

Property Grid - Filter Criteria

<dxprg:PropertyGridControl SelectedObject="{Binding Data}" 
                           FilterCriteria="Contains ([Header], 'Name')">
    <dxprg:PropertyDefinition Path="ID"/>
    <dxprg:PropertyDefinition Type="sys:DateTime"/>
    <dxprg:PropertyDefinition Type="sys:String"/>
</dxprg:PropertyGridControl>

The PropertyGridControl.UserFilterCriteria property allows you to obtain a filter expression created when a user types text in the Search Box. The PropertyGridControl combines FilterCriteria and PropertyGridControl.UserFilterCriteria expressions by the AND logical operator:

Property Grid - User Filter

See Also