Articles in this section
Category / Section

How to Drag & Drop a Row in SfDataGrid?

1 min read

SfDataGrid offers a built-in support for row drag and drop functionality by enabling SfDataGrid.AllowDraggingRows and AllowDrop property.

<syncfusion:SfDataGrid x:Name="datagrid"
                        ShowRowHeader="True"
                        AutoGenerateColumns="False"
                        AllowDraggingRows="True"
                        AllowDrop="True"
                        ColumnSizer="Auto"
                        ItemsSource="{Binding GDCSource}">

 

Refer the below example which demonstrates an RowDragandDrop with the SfDataGrid.C:\Users\muthukumar.kalyanasu\AppData\Local\Microsoft\Windows\INetCache\Content.Word\DragAndDrop.gif

Sample

WPF

UWP

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment