windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-bandedgridoptionscustomization-69d322ec.md
Gets or sets a value specifying whether end-users can move bands between parents.
Namespace : DevExpress.XtraGrid.Views.BandedGrid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowChangeBandParent { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AllowChangeBandParent As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if bands can be moved between parents; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowChangeBandParent |
|---|---|
| BandedGridView |
.OptionsCustomization .AllowChangeBandParent
|
As described in the Banded Grid Views topic, banded Views allow you to arrange bands in a hierarchical structure. This implies that bands can own other bands (serve as their parents). By default, when such a bands layout is used, end-users can only re-order bands within their parent bands. You can set the AllowChangeBandParent property to true to change this behavior so that end-users can change band positions without any restrictions.
End-users can re-order bands by dragging their headers. The band’s OptionsBand.AllowMove option must be enabled to allow this.
Note : you can reorder bands in code without any restrictions regardless of the AllowChangeBandParent option.
See Also
BandedGridOptionsCustomization Class