TreeList.MoveNode(TreeListNode, TreeListNode, Boolean) Method
Moves the selected node to the specified node’s child collection.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public bool MoveNode(
TreeListNode sourceNode,
TreeListNode destinationNode,
bool modifySource
)
#Parameters
Name | Type | Description |
---|---|---|
source |
Tree |
A Tree |
destination |
Tree |
A Tree |
modify |
Boolean | true, if the parent field value of the source node must be set to the key field value of the destination node; otherwise false. |
#Returns
Type | Description |
---|---|
Boolean | true, if the node has been moved successfully, otherwise false. |
#Remarks
Use the MoveNode method to move the specified node together with its child nodes to another location.
This can also be performed by end-users using drag-and-drop operations (see TreeListOptionsDragAndDrop.DragNodesMode).
A node cannot be moved to one of its child nodes.