DxDataGrid<T>.AllowColumnDragDrop Property
Specifies whether users can drag and drop a data grid’s columns.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v22.1.dll
Declaration
[DefaultValue(true)]
[Parameter]
public bool AllowColumnDragDrop { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
true to allow drag and drop operations; otherwise, false. |
Remarks
Important
The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.
The Data Grid allows users to drag and drop column headers at runtime in the Column Chooser and column header panel.
The AllowColumnDragDrop property indicates whether users are allowed to do the following:
- Reorder columns in the column header panel.
- Reorder columns in the Column Chooser.
- Change the group order inside the grid.
<DxDataGrid Data="@DataSource" AllowColumnDragDrop="false" >
@* ... *@
</DxDataGrid>
See Also