Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.DragCancelNode Event

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.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