aspnet-devexpress-dot-web-dot-aspxverticalgrid-fb82d3b9.md
Enables initializing the cell editors displayed within the edit cells.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public event ASPxVerticalGridEditorEventHandler CellEditorInitialize
Public Event CellEditorInitialize As ASPxVerticalGridEditorEventHandler
The CellEditorInitialize event's data class is ASPxVerticalGridEditorEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Editor | Gets the editor currently being processed. Inherited from ASPxGridEditorEventArgs. |
| Row | Gets the data row whose cell editor is being initialized. |
| Value | Gets the editor’s value. Inherited from ASPxGridEditorEventArgs. |
The CellEditorInitialize event is raised when the ASPxVerticalGrid is switched to edit mode and enables you to initialize cell editors.
Note
The following example illustrates how to use the CellEditorInitialize event to automatically focus the required column’s editor using the editor’s ASPxWebControl.Focus method (the e.Editor event argument).
protected void ASPxVerticalGrid1_CellEditorInitialize(object sender,
DevExpress.Web.ASPxVerticalGridEditorEventArgs e) {
if (e.Column.FieldName == "TimeFrom") {
e.Editor.Focus();
}
};
See Also