Skip to main content

DataControlBase.GetColumnFilterCriteria(String) Method

Returns a filter applied to the specified column.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public CriteriaOperator GetColumnFilterCriteria(
    string fieldName


Name Type Description
fieldName String

A String value that specifies the column’s field name.


Type Description

A CriteriaOperator object that represents filter criteria applied to the specified column. null (Nothing in Visual Basic), if data isn’t filtered by the values of the specified column.


To specify the grid’s filter, use the DataControlBase.FilterCriteria or DataControlBase.FilterString property. To apply a filter to a column(s) preserving the grid’s filter (if applied), use the DataControlBase.MergeColumnFilters method.

The GetColumnFilterCriteria method clears the required column’s filter.

To learn more, see Filtering in Code and Regular and Checked Drop-down Filters.

See Also