Skip to main content

TreeList.DragCancelNode Event

Fires immediately after a drag-and-drop operation over a node has been canceled.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v23.2.dll

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

Declaration

[DXCategory("DragDrop")]
public event EventHandler DragCancelNode

Event Data

The DragCancelNode event's data class is EventArgs.

Remarks

The Tree List control allows end-users to move its nodes by means of drag and drop operations (this feature can be enabled with the TreeListOptionsDragAndDrop.DragNodesMode property). The TreeListOptionsDragAndDrop.CanCloneNodesOnDrop and TreeListOptionsBehavior.AutoChangeParent options affect the result of drag and drop operations.

End-users can cancel drag and drop operations by pressing the ESC key when dragging a node. When it is performed, the DragCancelNode event is raised. Write a handler for this event to perform specific actions each time the drag and drop operation has been canceled.

See Also