xpo-devexpress-dot-xpo-dot-xpview-b3df543f.md
Gets or sets the expression used to filter the rows displayed in the view (on the client side).
Namespace : DevExpress.Xpo
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
[Browsable(false)]
public CriteriaOperator Filter { get; set; }
<Browsable(False)>
Public Property Filter As CriteriaOperator
| Type | Description |
|---|---|
| CriteriaOperator |
A CriteriaOperator object which specifies the expression used to filter the rows displayed in the view.
|
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);
XpView1.Filter = CriteriaOperator.Parse("Age < 40", Nothing)
For general information on how to filter both a data store and retrieved data, see Filtering.
See Also