.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPView.Filter Property

Gets or sets the expression used to filter the rows displayed in the view (on the client side).

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.2.dll

Declaration

[Browsable(false)]
public CriteriaOperator Filter { get; set; }

Property Value

Type Description
CriteriaOperator

A CriteriaOperator object which specifies the expression used to filter the rows displayed in the view.

Remarks

To clear filtering set the Filter property’s value to null (Nothing in Visual Basic).

The following sample filters the view to display only those records where the value in the Age column is less than 40.

xpView1.Filter = CriteriaOperator.Parse("Age < 40", null);

For general information on how to filter both a data store and retrieved data, see Filtering.

See Also