Skip to main content

ColumnFilterInfo(GridColumn, Object, String) Constructor

Creates a new ColumnFilterInfo class instance with the specified grid column, filter value and display text.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public ColumnFilterInfo(
    GridColumn column,
    object _value,
    string displayText
)

Parameters

Name Type Description
column GridColumn

A GridColumn object whose values are compared against the specified value.

_value Object

A Object representing the filter value. The specified value is compared to the column’s values. Records, whose values within the column do not match this parameter, are not displayed when filtering is applied. This parameter value is assigned to the ColumnFilterInfo.Value property.

displayText String

A String 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

This constructor creates a filter of type “[FieldName] = Value”, where FieldName is the field name of the specified column and Value is the specified value. Creating a ColumnFilterInfo object using this constructor doesn’t automatically apply the filter to the data. To filter records in a View, assign the created object to the GridColumn.FilterInfo property of any column in the View.

See Also