Back to Devexpress

TreeList.AfterDropNode Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-fc7af6a3.md

latest2.8 KB
Original Source

TreeList.AfterDropNode Event

Fires after a node is dropped.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DXCategory("DragDrop")]
public event AfterDropNodeEventHandler AfterDropNode
vb
<DXCategory("DragDrop")>
Public Event AfterDropNode As AfterDropNodeEventHandler

Event Data

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

PropertyDescription
DestinationNodeGets a parent node that owns the dropped node.
IsCopyGets whether the user copied or moved a node.
IsSuccessGets whether a node was copied or moved to another node (position).
NodeGets 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

BeforeDropNode

BeforeDragNode

AfterDragNode

DragCancelNode

DragNodesMode

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace