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

ColumnFilterInfo(String, String) Constructor

Creates a new ColumnFilterInfo class instance with the specified filter condition and its text representation.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public ColumnFilterInfo(
    string filterString,
    string displayText
)

#Parameters

Name Type Description
filterString String

A string value specifying the filter criteria. This string should be composed in compliance with SQL syntax requirements. This parameter value is assigned to the ColumnFilterInfo.FilterString property.

displayText String

A string value specifying the text representation of the filter criteria. This text is displayed within the View’s filter panel. If the parameter is set to an empty string, the filter condition’s text representation is constructed automatically. This parameter value is assigned to the ColumnFilterInfo.DisplayText property.

#Remarks

Use this constructor to create a new ColumnFilterInfo object specifying a custom filter condition and its text representation. Assign the object created to the desired column’s GridColumn.FilterInfo property to filter the column using the condition specified.

See Also