Skip to main content
Tab

ASPxGridViewBeforeHeaderFilterFillItemsEventArgs.Column Property

Gets the data column currently being filtered.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public GridViewDataColumn Column { get; }

#Property Value

Type Description
GridViewDataColumn

A GridViewDataColumn object that represents the data column currently being filtered.

#Example

This example creates custom filter items and displays them within the Units On Order column’s filter dropdown.

HeaderFilterFillItems

protected void ASPxGridView1_HeaderFilterFillItems(object sender, DevExpress.Web.ASPxGridViewHeaderFilterEventArgs e) {
        if (e.Column.FieldName != "Quantity") return;
        e.AddValue("nonzero", string.Empty, "[Quantity] != 0");
        e.AddValue(String.Format("from {0} to {1}", 0, 50), string.Empty, String.Format("[Quantity] > {0} and [Quantity] < {1}", 0, 50));
        e.AddValue(String.Format(">= {0}", 50), string.Empty, String.Format("[Quantity] >= {0}", 50));
}
See Also