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 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.
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,
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.
mike: i have a simple VB sample with two grids on how to do this. I think it would be a good sample to post on the infragistics site, as I saw a lot of requests for this.
I can e-mail or post the solution zipped up if you want.
let me know.
thx.
Hello,
Sounds good. If you can post it here, or please email me: dsmanager@infragistics.com.
Thanks so much,Stephani
If you get this code can you post a link to it somewhere, I would be interested in the solution.
Tha ZIP is attached here.
Thank you,
Stephani
Excellent! I hope it what you were looking for and is "behaving" as you expected.
David
Thanks for your help.
I was able to modify the project and get it working.
Joby