Skip to main content

ColumnFilterInfo(String, String, Object, ColumnFilterType) Constructor

Initializes a new instance of the ColumnFilterInfo class with the specified settings.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public ColumnFilterInfo(
    string filterString,
    string displayText,
    object val,
    ColumnFilterType filterType
)

Parameters

Name Type Description
filterString String

A string value specifying the filter criteria. This string should be composed in compliance with ANSI SQL standards. This value is assigned to the ColumnFilterInfo.FilterString property value. If this parameter has a value (it’s not null or an empty string) the val parameter is ignored.

displayText String

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

val Object

A Object representing the filter value. This parameter is in effect when the type parameter is set to ColumnFilterType.Value and the filter parameter is either an empty string or null (Nothing in Visual Basic). When in effect, the column is filtered by the specified value. This value is assigned to the ColumnFilterInfo.Value property.

filterType ColumnFilterType

A ColumnFilterType enumeration value specifying the filter type. This value is assigned to the ColumnFilterInfo.Type property.

Remarks

Use this constructor to create a new ColumnFilterInfo object specifying custom filter criteria. Assign the object to the desired column’s GridColumn.FilterInfo property to apply filtering.

See Also