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

TreeList.AfterDropNode Event

Fires after a node is dropped.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v23.1.dll

NuGet Package: DevExpress.Win.TreeList

Declaration

[DXCategory("DragDrop")]
public event AfterDropNodeEventHandler AfterDropNode

Event Data

The AfterDropNode event's data class is AfterDropNodeEventArgs. The following properties provide information specific to this event:

Property Description
DestinationNode Gets a parent node that owns the dropped node.
IsCopy Gets whether the user copied or moved a node.
IsSuccess Gets whether a node was copied or moved to another node (position).
Node Gets a node that the user has dropped.

Remarks

TreeList control nodes can be moved using drag-and-drop operations if the TreeListOptionsDragAndDrop.DragNodesMode option (accessible through the TreeList.OptionsBehavior property) is set to Single or Multiple.

The AfterDropNode event fires after a node has been dropped. The AfterDropNodeEventArgs.Node property allows you to determine the node being dropped. To get the destination parent node, read the DestinationNode property.

See Also