Back to Devexpress

XPDataView.FilterString Property

xpo-devexpress-dot-xpo-dot-xpdataview-c2d0960c.md

latest2.4 KB
Original Source

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

NuGet Package : DevExpress.Xpo

Declaration

csharp
[Browsable(false)]
[DefaultValue(null)]
public string FilterString { get; set; }
vb
<Browsable(False)>
<DefaultValue(Nothing)>
Public Property FilterString As String

Property Value

TypeDefaultDescription
Stringnull

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

|

Remarks

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.

Example

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.

csharp
xpDataView1.Filter = CriteriaOperator.Parse("Age < 50");
xpDataView1.Filter = new BinaryOperator("Age", 50, BinaryOperatorType.Less);
xpDataView1.FilterString = "Age < 50";
vb
xpDataView1.Filter = CriteriaOperator.Parse("Age < 50")
xpDataView1.Filter = New BinaryOperator("Age", 50, BinaryOperatorType.Less)
xpDataView1.FilterString = "Age < 50"

See Also

Filter

Filtering

XPDataView Class

XPDataView Members

DevExpress.Xpo Namespace