GridOptionsCustomization.AllowColumnMoving Property

Gets or sets whether end-users are allowed to move columns by dragging their headers.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowColumnMoving { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AllowColumnMoving As Boolean

Property Value

Type Default Description
Boolean

true

true if end-users are allowed to move grid columns; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowColumnMoving
AdvBandedGridView
.OptionsCustomization.AllowColumnMoving
AdvBandedGridView
.OptionsCustomization.AllowColumnMoving
BandedGridView
.OptionsCustomization.AllowColumnMoving
BandedGridView
.OptionsCustomization.AllowColumnMoving
GridView
.OptionsCustomization.AllowColumnMoving

Remarks

Column headers can be dragged within the column header panel to reorder columns or to the Customization Form to hide the columns. If the View's GridOptionsCustomization.AllowGroup and the column's OptionsColumn.AllowGroup options are enabled, column headers can also be dragged to the group panel.

To prevent individual columns from being moved set their OptionsColumn.AllowMove property to false.

Note that columns can still be moved via code using the GridColumn.VisibleIndex property regardless of the values of the AllowColumnMoving or OptionsColumn.AllowMove properties.

See Also