SfDataGrid offers a built-in support for row drag and drop functionality by enabling SfDataGrid.AllowDraggingRows and 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 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 PreviewMouseMove, DragOver and Drop events of ListView to handle the row drag and drop operation.
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.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|