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
btw, if you can't get a response, let me know and i will send the solution.
Hi All,
I still have not received them in my inbox. I will open a support case and you can attach it to the case.
You should receive an email that the case was opened.
Thank you,
Stephani
steph:
if for some reason you don't receive the file,
please let me know if you need me to get the solution to you by some other means.
I will send it again from a different email address: dave_acree@ctihome.com
Hello,
Tha ZIP is attached here.
Can you let us know how to find out the underlying datatype of the datasource bound to the dragged rows? I want to check to make sure that only records dragged from certain source is acceptable for certain destination grid. I'm using custom data source so the band.key comes out to be List which is not enough. Is there a way to get to the datasource?
Don't worry about this. I found out right after I posted the question. For those who want to know, I did this inside DragDrop event:
Dim SelRows As SelectedRowsCollection = TryCast(DirectCast(e.Data.GetData(GetType(SelectedRowsCollection)), SelectedRowsCollection), SelectedRowsCollection)
If TypeOf SelRows(0).ListObject Is YourTypeHere Then ....