Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridView.FilterExpression Property

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

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
public CriteriaOperator FilterExpression { get; set; }

#Property Value

Type Description
CriteriaOperator

A criteria operator that specifies a filter expression.

#Remarks

You can use the FilterExpression property to filter data in the grid against single or multiple columns. When a filter is applied, the grid displays a subset of data records that meet the specified criteria. To build filter expressions, use Criteria Operators.

Note that the FilterExpression and FilterString properties are dependent. If you update one of them, the other changes as well.

To get a string that specifies the grid’s current filter, use the DataGridView.ActualFilterString property.

To clear the grid’s filter, use the DataGridView.ClearFilter method.

See Also