The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPDataView.Filter Property

Gets or sets the criteria used to perform client-side filtering of data view rows.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.1.Design, Version=19.1.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
[DefaultValue(null)]
public CriteriaOperator Filter { get; set; }
<TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.1.Design, Version=19.1.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
<DefaultValue(Nothing)>
Public Property Filter As CriteriaOperator
[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.1.Design, Version=19.1.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
[DefaultValue(null)]
public CriteriaOperator Filter { get; set; }
<TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.1.Design, Version=19.1.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
<DefaultValue(Nothing)>
Public Property Filter As CriteriaOperator

Property Value

Type Default Description
CriteriaOperator

null

A CriteriaOperator object which specifies the criteria used to filter data view rows.

Property Value

Type Default Description
CriteriaOperator

null

A CriteriaOperator object which specifies the criteria used to filter data view rows.

Remarks

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

Examples

The following code snippet demonstrates filtering capabilities of the XPDataView. Filter criteria specified via the XPDataView.Filter and XPDataView.FilterString properties below, provide the identical functionality, and can be used interchangeably.

xpDataView1.Filter = CriteriaOperator.Parse("Age < 50");
xpDataView1.Filter = new BinaryOperator("Age", 50, BinaryOperatorType.Less);
xpDataView1.FilterString = "Age < 50";
See Also