ASPxGridHeaderFilterEditorInitializeEventArgs.Editor Property
In This Article
Gets the editor in the header filter.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public ASPxEditBase Editor { get; }
#Property Value
Type | Description |
---|---|
ASPx |
The editor. |
#Remarks
Web Forms:
// For ASPxCardView
protected void ASPxCardView1_HeaderFilterEditorInitialize(object sender, ASPxCardViewHeaderFilterEditorInitializeEventArgs e) {
if (e.Column.FieldName == "ProductName"){
//...
e.Editor.Enabled = false;
}
}
MVC:
C#
settings.HeaderFilterEditorInitialize = (s, e) => {
if (e.Column.FieldName == "ProductName"){
//...
e.Editor.Enabled = false;
}
};
See Also