LookUpEditBase.FilterCriteria Property
Gets or sets the filter expression applied to the LookUpEditBase.ItemsSource. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v19.2.dll
Declaration
public CriteriaOperator FilterCriteria { get; set; }
Public Property FilterCriteria As CriteriaOperator
Property Value
Type | Description |
---|---|
CriteriaOperator | A CriteriaOperator descendant that represents an external filter expression. |
Remarks
The LookUpEdit control can filter data from an ItemSource before displaying. You can use the FilterCriteria property to set a Filter Expression.
You can create your filter expression when the editor's ItemSource is a complex type object (it has its own properties). i.e., Contains([SomeProperty], '123')
You can use the DisplayColumn value to create a filter expression when the editor's item source is a simple objects collection:
LookUpEdit.FilterCriteria = new FunctionOperator(
FunctionOperatorType.EndsWith,
new OperandProperty("DisplayColumn"),
new OperandValue("ask0")
);
For more information on how to create filter expressions, see Criteria Language Syntax and Creating Criteria.