TreeList.CustomNodeCellEditForEditing Event
Allows you to assign a custom editor to a column for in-place editing and override the default column editor, which is by default used both in display and edit modes. To avoid performance issues and increased memory consumption, assign repository items that already exist in the TreeList.RepositoryItems collection. Do not create new repository items in this handler.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
[DXCategory("Editor")]
public event GetCustomNodeCellEditEventHandler CustomNodeCellEditForEditing
Event Data
The CustomNodeCellEditForEditing event's data class is GetCustomNodeCellEditEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Gets a column to which the cell processed by an event belongs. Inherited from CellEventArgs. |
Node | Gets the current Tree List node. Inherited from NodeEventArgs. |
RepositoryItem | Gets or sets the editor assigned to the processed cell. |
Remarks
You can assign an in-place editor to a column via the TreeListColumn.ColumnEdit property, or to an individual column cell via the TreeList.CustomNodeCellEdit event. This editor will be used to represent a cell’s contents in display mode (when the cell isn’t currently edited), and by default in edit mode. If you need to provide different editors to represent a cell’s contents differently in display and edit modes, handle the CustomNodeCellEditForEditing event.
To assign an editor to a cell for in-place editing while handling the CustomNodeCellEditForEditing event, assign a corresponding repository item to the RepositoryItem parameter. Note that the repository item must belong to the Tree List control’s RepositoryItems collection (see the EditorContainer.RepositoryItems property) or to an external repository (see the EditorContainer.ExternalRepository property).