We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to make row drag and drop between SfDataGrid with other controls ?

Platform: UWP |
Control: SfDataGrid

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 with other controls.


Row drag and drop between different controls

You can able to perform the row drag and drop between SfDataGrid with other control like ListView and others also. For this operation, you should override a RowDragDropController.ProcessOnDragOver and RowDragDropController.ProcessOnDrop to handle the drag and drop operations.


You should set the AllowDrop property of the ListView as true while doing the drag and drop operation from SfDataGrid with ListView and wire the DragEnter, DragOver and Drop events of ListView to handle the row drag and drop operation.


By the DragEnter event you can set the specified AcceptedOperation by using DataPackageOperation as illustrated in the following code example.


By handling the Drop event you can drop those items in to the ListView.


The following screenshot shows dragging records from ListView and dropping in SfDataGrid.




2X faster development

The ultimate UWP UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile