aspnetmvc-devexpress-dot-web-dot-mvc-dot-gridviewsettings-8fd68c70.md
Enables initializing the cell editors displayed within the grid edit cells.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public ASPxGridViewEditorEventHandler CellEditorInitialize { get; set; }
Public Property CellEditorInitialize As ASPxGridViewEditorEventHandler
| Type | Description |
|---|---|
| ASPxGridViewEditorEventHandler |
A ASPxGridViewEditorEventHandler delegate method allowing you to implement custom processing.
|
The CellEditorInitialize event is raised when the GridView 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).
This example demonstrates how to prevent an end-user from changing the unit price. To do this, the CellEditorInitialize event is handled. If the processed edit cell corresponds to a column bound to the ‘UnitPrice’ data field, its editor’s ReadOnly property is set to true.
See Also