Skip to main content
A newer version of this page is available. .

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.v19.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowColumnMoving { get; set; }

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowColumnMoving property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also