DataControlBase.FilterString Property
Gets or sets the grid’s filter expression. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
String | A String value that specifies the grid’s filter expression. |
Remarks
The filter expression specified by the FilterString property can consist of multiple conditions applied to multiple columns. Setting the FilterString property to a new value clears any filters that have been previously applied. The DataControlBase.GetColumnFilterString method allows you to obtain the filter expression applied to an individual column.
The grid’s filter can also be specified using the DataControlBase.FilterCriteria property.
For detailed information and examples, see Regular and Checked Drop-down Filters and Filtering in Code.
Note
The filter string is processed by the CriteriaOperator.Parse method internally. Refer to the Limitations of CriteriaOperator.Parse topic to learn more.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FilterString property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.