Skip to main content

TreeList.AfterDragNode Event

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

Namespace: DevExpress.XtraTreeList

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

See Also