Skip to main content

GridColumn.FilterInfo Property

Gets or sets the filter condition applied to the column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[Browsable(false)]
public ColumnFilterInfo FilterInfo { get; set; }

Property Value

Type Description
ColumnFilterInfo

A ColumnFilterInfo object specifying the filter condition applied to the column.

Remarks

To apply a filter to a column, assign a ColumnFilterInfo object to the FilterInfo property. You can assign a single ColumnFilterInfo object to multiple columns at once.

To clear a column’s filter specified by the FilterInfo object, call the GridColumn.ClearFilter method.

The following example shows how to assign filter criteria (“[ShipCountry] = ‘Poland’”) to the CustomerID grid column.

GridColumn columnCustomer = gridView1.Columns["CustomerID"];
columnCustomer.FilterInfo = new ColumnFilterInfo("[ShipCountry] = 'Poland'");

See Filter and Search for more information.

See Also