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

ColumnView.GetFilterDisplayText(ViewFilter) Method

Returns the textual representation of the specified filter.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public virtual string GetFilterDisplayText(
    ViewFilter filter
)

#Parameters

Name Type Description
filter ViewFilter

A ViewFilter object representing the filter whose text representation needs to be obtained.

#Returns

Type Description
String

The textual representation of the specified filter.

#Remarks

The GetFilterDisplayText method returns the textual representation of the specified filter based on the display values of cells and settings of columns and in-place editors. To get the textual representation of the filter which is currently applied to the View call the GetFilterDisplayText method with the ColumnView.ActiveFilter object as a parameter.

string s = gridView1.GetFilterDisplayText(gridView1.ActiveFilter);
See Also