Where can I download a tutorial or C # example that explains the use of Drag and Drop between two UltraGrid?
I found sample projects that explain the use of drag and drop into the UltraGrid component itself. But I have not found any that explain how to do it from one datagrid component to another one.
Thanks in advance!
Hi,
No, nothing happens automatically. You decide what a drop means by writing code to handle it, there's nothing automatic.
So if you want to move a row from one grid to another, you should remove the row from the source grid's data source and add a new row to the target grid's datasource with the same data.
Yes, as you say. It was simple.
Another related question:
By using the MoveEffect, is it necessary to delete the row of the source grid, programmatically?
This doesn't happen automatically, does it?
Thank you very much in advance for your help
Hi Danial,
I'm not sure if there is any such sample. But it's really not all that different when dragging from one grid to another as it is when dragging within the same grid.
The only major difference is in what happens when you drop. You can't just change the position of the row, obviously. The row data has to be moved or copied from the data source of one grid to the other - assuming that's what you want to do.
If there's any particular part of this that you are getting stuck on, let me know and I will try to point you in the right direction.