.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

XPDataView.FilterString Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll


public string FilterString { get; set; }
Public Property FilterString As String

Property Value

Type Default Description


A string representation of a CriteriaOperator object which specifies the filtering criteria.


The string assigned to this property is automatically converted to criteria using CriteriaOperator.Parse and is set to the XPDataView.Filter property.

To clear filtering, assign an empty string to the FilterString property.


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