Back to Devexpress

ASPxVerticalGrid.HeaderFilterEditorInitialize Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-0312e71d.md

latest2.6 KB
Original Source

ASPxVerticalGrid.HeaderFilterEditorInitialize Event

Occurs when a header filter editor is initialized.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxVerticalGridHeaderFilterEditorInitializeEventHandler HeaderFilterEditorInitialize
vb
Public Event HeaderFilterEditorInitialize As ASPxVerticalGridHeaderFilterEditorInitializeEventHandler

Event Data

The HeaderFilterEditorInitialize event's data class is ASPxVerticalGridHeaderFilterEditorInitializeEventArgs. The following properties provide information specific to this event:

PropertyDescription
EditorGets the editor in the header filter. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs.
EditorTypeGets the editor type. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs.
RowGets the row to which the processed editor belongs.

Remarks

You can use the HeaderFilterEditorInitialize event to customize the header filter editor when it is initialized.

aspx
<ASPxVerticalGrid ID="ASPxVerticalGrid1" onHeaderFilterEditorInitialize="ASPxVerticalGrid1_HeaderFilterEditorInitialize">
    ...
</ASPxVerticalGrid>
csharp
protected void ASPxVerticalGrid1_HeaderFilterEditorInitialize(object sender, ASPxVerticalGridHeaderFilterEditorInitializeEventArgs e) {
    if (e.EditorType == GridHeaderFilterEditorType.Calendar){
        // your code
    }
}

Note that the HeaderFilterEditorInitialize event supports only editors that do not send callbacks.

See Also

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace