DxDataGrid<T>.AllowColumnDragDrop Property

Specifies whether users can drag and drop a data grid’s columns.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(true)]
public bool AllowColumnDragDrop { get; set; }

Property Value

Type Default Description
Boolean

true

true to allow drag and drop operations; otherwise, false.

Remarks

The Data Grid allows users to drag and drop column headers at runtime.

Data Grid Reorder Columns

Use the AllowColumnDragDrop property to enable/disable users to reorder columns or change the group order in the grid.

<DxDataGrid Data="@DataSource" AllowColumnDragDrop="false" >
    ...
</DxDataGrid>
See Also