Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

Drag-and-drop data rows from one grid to another

$
0
0

This is an example for the Drag-and-drop data rows from one grid to another Knowledge Base article. Please refer to the article for the explanation.

Question Comments

Added By: Carlos Arias at: 10/9/2012 1:52:58 PM    

GridControl grid = sender as GridControl;
grid always null ???

Added By: Amit Ghuge 1 at: 3/12/2015 8:12:15 AM    

Thanx Dear fro reply me i'll do it

Added By: david ola at: 11/5/2015 5:41:44 AM    

1. Can you copy instead from the original grid rather than deleting the row being dragged? In other words, after dragging a particular row, let the original grid still have the row, as opposed to the row disappearing.
2. Can you modify the code such that the row being dragged can be captured and displayed, modified before it is dropped?

Added By: Brendon Muck [DevExpress MVP] at: 11/5/2015 7:44:57 AM    

David,

Just change the DragDrop handler to not import and delete the source and instead create a copy of the DataRow and import that into the second grid.


Viewing all articles
Browse latest Browse all 7205

Trending Articles