Skip to main content
Tab

ASPxGridHeaderFilterEditorInitializeEventArgs.Editor Property

Gets the editor in the header filter.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public ASPxEditBase Editor { get; }

Property Value

Type Description
ASPxEditBase

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:

settings.HeaderFilterEditorInitialize = (s, e) => {
    if (e.Column.FieldName == "ProductName"){
        //...
        e.Editor.Enabled = false;
    }
};

See Also