.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

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.v19.2.dll

Declaration

[Browsable(false)]
public CriteriaOperator Filter { get; set; }
<Browsable(False)>
Public Property Filter As CriteriaOperator

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.

Implements

DevExpress.Data.Filtering.Helpers.IFilteredDataSource.Filter
See Also