aspnetmvc-devexpress-dot-web-dot-mvc-dot-verticalgridsettings-daa80194.md
Enables initializing the cell editors displayed within the VerticalGrid edit cells.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public ASPxVerticalGridEditorEventHandler CellEditorInitialize { get; set; }
Public Property CellEditorInitialize As ASPxVerticalGridEditorEventHandler
| Type | Description |
|---|---|
| ASPxVerticalGridEditorEventHandler |
A ASPxVerticalGridEditorEventHandler delegate method allowing you to implement custom processing.
|
The CellEditorInitialize event is raised when the VerticalGrid 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).
settings.CellEditorInitialize = (s, e) => {
if (e.Column.FieldName == "TimeFrom")
{
e.Editor.Focus();
}
};
See Also