In an Mdi application, how can i implement Drag&Drop from a GridDataBoundGrid (contains in a mdi child form) to a ListView (contains in the mdi parent form).
I use the GDBG as an OLE source and i set the AllowDrop Property of the ListView to true but when the cursor is over the listview i get the nodrop cursor.
When i dragging a row from the GDBG to an Excel WorkSheet, it''s work fine.
Do i need to use the DragDrop, DragEnter, DragMove events of the ListView ?
Is there a sample anywhere for doing an Drag&Drop like this ?
How can i use a custom data object as part of the drop data ?
ADAdministrator Syncfusion Team August 25, 2004 01:44 AM
You do have to handle some D&D events in your ListView to get the ListView to accept a Text drop.
Here is a little sample that shows how you might try to do this. Inside the ListView DragDrop event, it shows how you can get at the text data from the OLE data object, but it does not do anything with it except write it to the output window.