Back to Devexpress

BandedGridOptionsCustomization.AllowChangeBandParent Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-bandedgridoptionscustomization-69d322ec.md

latest3.0 KB
Original Source

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.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to 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

AllowChangeColumnParent

AllowMove

BandedGridOptionsCustomization Class

BandedGridOptionsCustomization Members

DevExpress.XtraGrid.Views.BandedGrid Namespace