Back to Devexpress

BandedGridOptionsCustomization.AllowChangeColumnParent Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-bandedgridoptionscustomization-cc3d5325.md

latest3.2 KB
Original Source

BandedGridOptionsCustomization.AllowChangeColumnParent Property

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

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 AllowChangeColumnParent { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AllowChangeColumnParent As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if end-users can move columns between bands; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowChangeColumnParent
BandedGridView

.OptionsCustomization .AllowChangeColumnParent

|

Remarks

If a column’s OptionsColumn.AllowMove and View’s GridOptionsCustomization.AllowColumnMoving options are enabled, end-users can change the column position by dragging its header. By default, they can only do this for reordering columns within their owning bands. If you want to allow users to move columns between bands, set the AllowChangeColumnParent option to true.

Note : a column’s parent band can be also changed programmatically by setting the column’s BandedGridColumn.OwnerBand property regardless of the AllowCangeColumnParent option setting.

See Also

AllowChangeBandParent

OwnerBand

AllowMove

AllowColumnMoving

BandedGridOptionsCustomization Class

BandedGridOptionsCustomization Members

DevExpress.XtraGrid.Views.BandedGrid Namespace