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

TreeListOptionsDragAndDrop.InsertNodesInSelectionOrder Property

Gets or sets whether nodes being dragged are dropped in the order they are in the tree list, or in the order they are selected.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool InsertNodesInSelectionOrder { get; set; }

#Property Value

Type Default Description
Boolean true

true if nodes are dropped in the order they are selected; false if nodes are droped in the order they are in the tree list.

#Property Paths

You can access this nested property as listed below:

Object Type Path to InsertNodesInSelectionOrder
TreeList
.OptionsDragAndDrop .InsertNodesInSelectionOrder

#Remarks

The InsertNodesInSelectionOrder property specifies whether nodes being dragged are dropped in the order they are selected, or in the order they are in the tree list. When a user drags nodes, a preview image is also displayed near the mouse pointer. Nodes in the preview are arranged in the order they were selected by default. Set the InsertNodesInSelectionOrder property to false to drop and arrange nodes in the same order as in the tree list.

For example, if departments are selected in the following order: Boston, Toronto, San Francisco, Monterey, this order is preserved in the preview by default.

InsertNodesInSelectionOrder_True

The order in the preview matches the tree list order if the InsertNodesInSelectionOrder property is set to false.

InsertNodesInSelectionOrder_False

See Also