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.AfterDropNode Event

Fires after a node is dropped.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, 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