Skip to main content

OptionsColumn.AllowMove Property

Gets or sets whether end-users can drag the column’s header.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

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

Property Value

Type Default Description
Boolean true

true if end-users can drag the column’s header; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowMove
GridColumn
.OptionsColumn .AllowMove

Remarks

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

The View’s GridOptionsCustomization.AllowColumnMoving property can be used to prevent any columns from being moved by end-users.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowMove 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