We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Dragging Row to a ListView Control

Thread ID:

Created:

Updated:

Platform:

Replies:

18162 Aug 25,2004 01:52 AM Aug 25,2004 03:38 AM Windows Forms 3
loading
Tags: GridControl
Mikaël Morvan
Asked On August 25, 2004 01:52 AM

Hello, 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 ? Thanks, Mikaël

Administrator [Syncfusion]
Replied On August 25, 2004 02: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. ListViewSort_300.zip

Mikaël Morvan
Replied On August 25, 2004 03:37 AM

Thanks for the quick response Clay.

Mikaël Morvan
Replied On August 25, 2004 03:38 AM

Thanks for the quick response Clay.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;