Tab

ASPxGridViewBehaviorSettings.ColumnMoveMode Property

Gets or sets a value that defines how ASPxGridView columns can be rearranged using drag-and-drop.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.1.dll

Declaration

[DefaultValue(GridColumnMoveMode.AmongSiblings)]
public GridColumnMoveMode ColumnMoveMode { get; set; }
<DefaultValue(GridColumnMoveMode.AmongSiblings)>
Public Property ColumnMoveMode As GridColumnMoveMode

Property Value

Type Default Description
GridColumnMoveMode

AmongSiblings

One of the GridColumnMoveMode enumeration values.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ColumnMoveMode
ASP.NET Controls and MVC Extensions ASPxGridView
.SettingsBehavior.ColumnMoveMode
GridViewProperties
.SettingsBehavior.ColumnMoveMode
GridViewSettings
.SettingsBehavior.ColumnMoveMode
GridViewSettings<RowType>
.SettingsBehavior.ColumnMoveMode
MVCxGridView
.SettingsBehavior.ColumnMoveMode
MVCxGridView
.SettingsBehavior.ColumnMoveMode
MVCxGridViewProperties
.SettingsBehavior.ColumnMoveMode
MVCxGridViewProperties
.SettingsBehavior.ColumnMoveMode
ASP.NET Bootstrap Controls BootstrapGridView
.SettingsBehavior.ColumnMoveMode
BootstrapGridView
.SettingsBehavior.ColumnMoveMode

Remarks

Use the ColumnMoveMode property to specify how an end-user can customize the grid column's layout using drag-and-drop.

Two modes are available:

  • In the AmongSiblings mode, you can move grid columns within their parent band. When you mode a parent band, it is moved with all its children.

  • In the ThroughHierarchy mode, you can move columns and bands between parents and hierarchy levels. This mode enables end-users to group columns in Data Cell Bands.

Concept

Move Columns

Example

Web Forms (declaratively):

<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
    <SettingsBehavior ColumnMoveMode="ThroughHierarchy" />
    ...
</dx:ASPxGridView>

Web Forms (in code):