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

DataControlBase.GetColumnFilterString(ColumnBase) Method

Returns a filter expression applied to the specified column.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public string GetColumnFilterString(
    ColumnBase column
)

#Parameters

Name Type Description
column ColumnBase

A ColumnBase descendant that represents the column.

#Returns

Type Description
String

A String value that specifies the specified column’s filter expression.

#Remarks

To specify the grid’s overall filter expression, 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 DataControlBase.ClearColumnFilter method clears the required column’s filter.

To learn more, see Filtering in Code and Filtering.

See Also