aspnetmvc-devexpress-dot-web-dot-mvc-dot-cardviewsettings-610b6fbb.md
Enables initializing the cell editors displayed within the CardView edit cells.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public ASPxCardViewEditorEventHandler CellEditorInitialize { get; set; }
Public Property CellEditorInitialize As ASPxCardViewEditorEventHandler
| Type | Description |
|---|---|
| ASPxCardViewEditorEventHandler |
An ASPxCardViewEditorEventHandler delegate method allowing you to implement custom processing.
|
The CellEditorInitialize event is raised when the CardView 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