Back to Devexpress

PivotGridControl.FilterString Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-2577693f.md

latest2.2 KB
Original Source

PivotGridControl.FilterString Property

Gets or sets the filter expression used to filter PIvotGridControl’s data. This is an attached property.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

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

Property Value

TypeDescription
String

A filter expression

|

Remarks

The FilterString property allows you to specify a filter string:

csharp
grid.FilterString = "([OrderDate] < #1/1/2018# AND [UnitPrice] < 10)" +
    " OR ([OrderDate] >= #1/1/2019# AND [UnitPrice] >= 100)";
vb
grid.FilterString = "([OrderDate] < #1/1/2018# AND [UnitPrice] < 10)" & 
    " OR ([OrderDate] >= #1/1/2019# AND [UnitPrice] >= 100)"

End users can invoke the Filter Editor to modify filter criteria, and therefore, the FilterString property.

See Also

Filtering in Code

OLAP Filtering Specifics

Filter Drop-Down

Filtering

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace