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.UserFilterCriteria Property

Gets or sets the property grid’s user 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 UserFilterCriteria { get; set; }

#Property Value

Type Description
CriteriaOperator

The user filter criteria.

#Remarks

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

Property Grid - User Filter

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

Refer to the following help topic for more information: Criteria Language Syntax.

See Also