BandedGridOptionsCustomization.AllowChangeBandParent Property

Gets or sets a value specifying whether end-users can move bands between parents.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowChangeBandParent { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AllowChangeBandParent As Boolean

Property Value

Type Default Description
Boolean

false

true if bands can be moved between parents; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowChangeBandParent
AdvBandedGridView
.OptionsCustomization.AllowChangeBandParent
BandedGridView
.OptionsCustomization.AllowChangeBandParent

Remarks

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