Skip to main content

ColumnFilterInfo(GridColumn, Object) Constructor

Creates a new ColumnFilterInfo class instance with the specified filter value and column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

public ColumnFilterInfo(
    GridColumn column,
    object _value
)

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 Value 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 the View’s any column.

See Also