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!
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.
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
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.
Thank you very much for the information.
I have a simple VB.NET example that could be easily converted to C#. If you are interested I can e-mail it to you in a zip file or post it somewhere.
I searched all over this site for one but could not find one, so I had to deal with creating one through trial and error. Funny thing is, the final solution was way more simpler that I thought.
Let me know.