Skip to main content
.NET 6.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.v24.1.dll

NuGet Package: DevExpress.Xpo

#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