Back to Devexpress

TreeList.CustomNodeCellEditForEditing Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-2b593d13.md

latest3.7 KB
Original Source

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.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DXCategory("Editor")]
public event GetCustomNodeCellEditEventHandler CustomNodeCellEditForEditing
vb
<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:

PropertyDescription
ColumnGets a column to which the cell processed by an event belongs. Inherited from CellEventArgs.
NodeGets the current Tree List node. Inherited from NodeEventArgs.
RepositoryItemGets 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).

Run Demo

See Also

CustomNodeCellEdit

ColumnEdit

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace