Skip to main content

DataControlBase.FilterString Property

Gets or sets the grid’s filter expression. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP("", Handler = "OnFilterStringChanged")]
public string FilterString { get; set; }

Property Value

Type Description
String

The GridControl’s filter expression.

Remarks

The filter expression specified by the FilterString property can consist of multiple conditions applied to multiple columns. When you set the FilterString property to a new value, the GridControl clears previously applied filters. The DataControlBase.GetColumnFilterString method allows you to obtain the filter expression applied to an individual column.

You can also use the DataControlBase.FilterCriteria property to specify the GridControl’s filter.

For more information, refer to the following help topic: Filter Data in Code.

See Also