Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewHeaderFilterEditorInitializeEventArgs.Column Property

Gets the column to which the processed editor belongs.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public GridViewDataColumn Column { get; }

Property Value

Type Description
GridViewDataColumn

The column.

Remarks

Web Forms:

<ASPxGridView ID="ASPxGridView1" onHeaderFilterEditorInitialize="ASPxGridView1_HeaderFilterEditorInitialize">
    ...
</ASPxGridView>
protected void ASPxGridView1_HeaderFilterEditorInitialize(object sender, ASPxGridViewHeaderFilterEditorInitializeEventArgs e) {
    if (e.Column.FieldName == "ProductName"){
        // your code
    }
}

MVC:

settings.HeaderFilterEditorInitialize = (s, e) => {
    if (e.Column.FieldName == "ProductName"){
        // your code
    }
};

See Also