Skip to main content

ColumnFilterInfo(ColumnFilterType, Object, CriteriaOperator, String) Constructor

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

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public ColumnFilterInfo(
    ColumnFilterType type,
    object _value,
    CriteriaOperator filter,
    string displayText
)

Parameters

Name Type Description
type ColumnFilterType

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

_value 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 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.

filter CriteriaOperator

A CriteriaOperator object which represents the filter criteria. If this parameter is not null the _value 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 value is assigned to the ColumnFilterInfo.DisplayText 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