Skip to main content

How to: Adjust Group's Drag and Drop Options

The following sample code adjusts drag & drop options of the first group within the control. It enables dragging of this group’s links and disables dropping links from other controls into this group. The NavBarGroup.DragDropFlags property is used for this purpose.

using DevExpress.XtraNavBar;
// ...
navBarControl1.Groups[0].DragDropFlags &= ~NavBarDragDrop.AllowOuterDrop;
navBarControl1.Groups[0].DragDropFlags |= NavBarDragDrop.AllowDrag;