Skip to main content
A newer version of this page is available. .

LookUpEditBase.FilterCriteria Property

Gets or sets the filter expression applied to the editor’s bound source. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public CriteriaOperator FilterCriteria { get; set; }

Property Value

Type Description
CriteriaOperator

A CriteriaOperator descendant that represents a filter expression.

Remarks

When the Filter Expression is applied, the LookUpEdit control filters its data items before displaying them.

Use the FilterCriteria property to set a Filter Expression.

When the editor is bound to a collection of complex type objects (every object has its own properties), the filter expression can be applied as follows: "Contains([SomeProperty], '123')"

Use the DisplayColumn value to create a filter expression when the editor is bound to a collection of simple objects:

LookUpEdit.FilterCriteria = new FunctionOperator(
  FunctionOperatorType.EndsWith, 
  new OperandProperty("DisplayColumn"), 
  new OperandValue("ask0")
);

listbox-filter-criteria

For more information on how to create filter expressions, see Criteria Language Syntax and Creating Criteria.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterCriteria property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also