Articles in this section
Category / Section

How to make row drag and drop between SfDataGrid's ?

1 min read

SfDataGrid offers a built-in support for row drag and drop functionality by enabling SfDataGrid.AllowDraggingRows and AllowDrop property. This topic demonstrates row drag-and-drop operations between SfDataGrid.

 

<syncfusion:SfDataGrid x:Name="dataGrid" 
                        AllowDraggingRows="True"
                        AllowDrop="True"
                        LiveDataUpdateMode="AllowDataShaping"
                        ItemsSource="{Binding UserDetails}" >

 

Row drag and drop between SfDataGrid

You should enable AllowDraggingRows and AllowDrop property for the SfDataGrid’ s which are involved in row drag and drop operations.

The following screenshot displays the selected row can be dragged and dropped from one SfDataGrid to another.

Drag and drop between SfDataGrid

Samples:

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
Access denied
Access denied