ASPxGridViewHeaderFilterEditorInitializeEventArgs.Column Property
Gets the column to which the processed editor belongs.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v23.2.dll
NuGet Package: DevExpress.Web
Declaration
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