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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dragging Row to a ListView Control

Thread ID:





18162 Aug 25,2004 05:52 AM UTC Aug 25,2004 07:38 AM UTC WinForms 3
Tags: GridControl
Mikaël Morvan
Asked On August 25, 2004 05:52 AM UTC

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 06:44 AM UTC

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 07:37 AM UTC

Thanks for the quick response Clay.

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

Thanks for the quick response Clay.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon