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

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

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

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