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

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

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

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowChangeBandParent { get; set; }

#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
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