ASPxGridViewBehaviorSettings.AllowDragDrop Property
Specifies whether users can rearrange column headers.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v25.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | true |
|
Property Paths
You can access this nested property as listed below:
| Object Type | Path to AllowDragDrop |
|---|---|
| ASPxGridView |
|
| GridViewProperties |
|
Remarks
The AllowDragDrop option affects the user’s ability to perform the following actions:
- Reorder columns in the customization dialog and the column header panel.
- Show and hide columns in the customization dialog.
- Group and ungroup data.
You can use the following properties to control this behavior at the column level:
To learn more, refer to the following topic: Move Columns.
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
...
<SettingsBehavior AllowDragDrop="false" />
<Columns>
<dx:GridViewDataTextColumn FieldName="QuantityPerUnit" VisibleIndex="1">
<Settings AllowDragDrop="True" />
</dx:GridViewDataTextColumn>
...
</Columns>
</dx:ASPxGridView>
See Also