Skip to main content
All docs
V25.1
  • Tab

    ASPxGridHeaderFilterEditorInitializeEventArgs.Editor Property

    Gets the editor in the header filter.

    Namespace: DevExpress.Web

    Assembly: DevExpress.Web.v25.1.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