Skip to main content

ColumnFilterInfo Class

Contains column filter settings.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public class ColumnFilterInfo :
    IEquatable<ColumnFilterInfo>

The following members return ColumnFilterInfo objects:

Remarks

The Data Grid control provides a number of ways to filter data in code. See the Filter and Search topic for more information.

The GridColumn.FilterInfo property allows you to assign a filter to a specific column. Create and initialize a ColumnFilterInfo object via the class constructor and then assign this object to a column’s GridColumn.FilterInfo property.

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'");

Inheritance

Object
ColumnFilterInfo
See Also