Back to Devexpress

XPView.Filter Property

xpo-devexpress-dot-xpo-dot-xpview-b3df543f.md

latest1.7 KB
Original Source

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

NuGet Package : DevExpress.Xpo

Declaration

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

Property Value

TypeDescription
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.

csharp
xpView1.Filter = CriteriaOperator.Parse("Age < 40", null);
vb
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

XPView Class

XPView Members

DevExpress.Xpo Namespace