Skip to main content
A newer version of this page is available. .

TreeList.AfterDragNode Event

Fires immediately after a drag-and-drop operation on a node has been successfully completed.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

public event AfterDragNodeEventHandler AfterDragNode

Event Data

The AfterDragNode event's data class is DevExpress.XtraTreeList.AfterDragNodeEventArgs.

Remarks

With the TreeListOptionsDragAndDrop.DragNodesMode option, you can allow your end-users to drag treelist nodes. To control whether each individual node can be dragged by users, handle the TreeList.BeforeDragNode event.

The AfterDragNode event fires if the drag and drop operation over a node has been successfully completed. You can use this event to perform specific actions each time a node is dropped.

Note that you can handle the TreeList control’s DragDrop event to specify the result of node drag and drop operations. If the Effect event parameter is set to DragDropEffects.None within your handler of this event, the drag and drop operation is canceled. The AfterDragNode event is not invoked in this case.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AfterDragNode event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also