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

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.2.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