ASPxGridView.HeaderFilterEditorInitialize Event
Occurs when a header filter editor is initialized.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
public event ASPxGridViewHeaderFilterEditorInitializeEventHandler HeaderFilterEditorInitialize
Event Data
The HeaderFilterEditorInitialize event's data class is ASPxGridViewHeaderFilterEditorInitializeEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Gets the column to which the processed editor belongs. |
Editor | Gets the editor in the header filter. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs. |
EditorType | Gets the editor type. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs. |
Remarks
You can use the HeaderFilterEditorInitialize event to customize the header filter editor when it is initialized.
<ASPxGridView ID="ASPxGridView1" onHeaderFilterEditorInitialize="ASPxGridView1_HeaderFilterEditorInitialize">
...
</ASPxGridView>
protected void ASPxGridView1_HeaderFilterEditorInitialize(object sender, ASPxGridViewHeaderFilterEditorInitializeEventArgs e) {
if (e.EditorType == GridHeaderFilterEditorType.Calendar){
// your code
}
}
Note that the HeaderFilterEditorInitialize event supports only editors that do not send callbacks.
See Also