Example of Drag and Drop in Blazor DataGrid Component

DataGrid / Rows / Drag and Drop

This example shows the DataGrid component with the row drag and drop functionality. To move rows, drag and drop them between DataGrids.

1 of 7 pages (75 items)
0 of 0 pages (0 items)

The Blazor DataGrid rows can be dragged and dropped to another DataGrid by enabling AllowRowDragAndDrop property. The target control on which the DataGrid rows has to be dropped can be set by using TargetID property of the GridRowDropSettings component.

To select the rows in this demo, the selection feature should be enabled. Multiple rows can be selected within the DataGrid by simply clicking and dragging them. Row dragging and dropping is enabled in both DataGrids. Drag and drop rows between DataGrids by selecting rows and dragging to the adjacent DataGrid or by utilizing the drag icon.

Rearrange rows within the same grid by dragging and dropping them, using the drag icon located on the left side of the grid column.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE