How to roll back a Drag and Drop operation |
Post Reply |
Author | |
Rat
Newbie Joined: 09 November 2011 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 24 November 2011 at 4:57am |
I drag one item from ReportControl A and drop it to ReportControl B.
If the item doesn't match, a 'Yes/No' messageBox will be shown to ask whether the drag and drop operation will continue. If the user choose continue the operation, the drag and drop operation will be finished. If the user choose stop the operation, the items of control A and control B should keep the old status. Now, I put above operation in OnReportDrop() method. When the user choose 'No', I wrote 'return;'. And I forbid the other operation in OnReportDragDropCompleted() method. But the item still disappear in control A and appear in control B. So,How to roll back a drag and drop operation?Thanks very much. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |