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

BaseColumn.AllowMoving Property

Gets or sets whether an end-user is allowed to move this column by dragging its header. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public DefaultBoolean AllowMoving { get; set; }

#Property Value

Type Description
DefaultBoolean

A DefaultBoolean enumeration value that specifies whether an end-user is allowed to move this column.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

#Remarks

End-users are allowed to reorder columns and move them to the Group Panel via drag-and-drop, if the view’s DataViewBase.AllowColumnMoving property is set to true. Individual columns provide the AllowMoving property, allowing the default behavior specified by the view, to be overridden. Setting the AllowMoving property to ‘True’ or ‘False’ overrides the default behavior. This can be useful when it is required to prevent individual columns from being moved by an end-user.

If the columns AllowMoving property is set to ‘Default’, the ability to move it via drag-and-drop is controlled by the view’s DataViewBase.AllowColumnMoving property. In this instance, to determine whether an end-user can actually move this column, use the BaseColumn.ActualAllowMoving property.

To learn more, see Table View.

See Also