DataViewBase.AllowColumnMoving Property
Gets or sets whether an end-user is allowed to move columns by dragging their headers. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v22.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true to allow an end-user to move columns; otherwise, false. |
Remarks
If the AllowColumnMoving property is set to true, users can do the following:
- Reorder columns.
- Drag a column outside of the GridControl to hide the column.
- Drag a column to the Group Panel to group the GridControl against this column.
Individual columns provide the BaseColumn.AllowMoving property, that allows the default behavior specified by the view to be overridden. For instance, if the AllowColumnMoving property is set to true, you can set an individual column’s BaseColumn.AllowMoving property to ‘False’. As a result, an end-user can move all columns displayed within the view, except this one particular column.
To learn more, see Columns Layout and Width.
Related GitHub Examples
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.