ASPxGridViewHeaderFilterEditorInitializeEventArgs.Column Property
In This Article
Gets the column to which the processed editor belongs.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public GridViewDataColumn Column { get; }
#Property Value
Type | Description |
---|---|
Grid |
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:
C#
settings.HeaderFilterEditorInitialize = (s, e) => {
if (e.Column.FieldName == "ProductName"){
// your code
}
};
See Also