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.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

[DXCategory("Editor")]
public event GetCustomNodeCellEditEventHandler CustomNodeCellEditForEditing
<DXCategory("Editor")>
Public Event CustomNodeCellEditForEditing As GetCustomNodeCellEditEventHandler

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).

See Also