DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2006

    Please Help me with Drag-n-Drop of multiple items from one Listview to another.


    I'm facing a problem with Listview Drog and Drop of multiple items from one listview to another listview. When I try to Drag only one single item, the item is dragged without any problem. However, when the multiple selected items are dragged, the Listview on which the items are dropped, receives information about only one item and not all selected items. The item, about which the information is received, is the same on which I click and hold mouse to start drag action. So, it looks like even though multiple items are selected in a listview, while executing the Drag-Drop action, listview treats it as single item selected!

    Is this a default behavior of Listview or am I missing/doing anything wrong? Any work-around for this (seems like default) behavior of Listview? I searched for it and got a code example at http://btmtz.mvps.org/listview/ where the author has demonstrated Drag-Drop of multiple items. However, the code is specifically restricted to re-arranging items within same Listview and the information is transported via Drag-Drop to another Listview, upon which the items are dropped.

    To help you all to get a better insight of my problem, I have attached a Demo of Listview Drag-n-Drop. Please see the project and you will see that when one item is dragged from left side Listview to right side Listview, no problem for VB to allow me to do it! However, when you select multiple items in left side Listview and try dragging those to right side Listview, only one item is dragged. Please let me know if I'm doing anything wrong here and please help me to get this stuff to work!

    Waiting for your valuable reply ...


    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2006
    I hope this will help you.
    Attached Files Attached Files

Similar Threads

  1. Problem with Drag and Drop
    By Jim Pragit in forum .NET
    Replies: 5
    Last Post: 08-10-2005, 07:16 AM
  2. Multiple Drag & Drop
    By BIsh in forum VB Classic
    Replies: 1
    Last Post: 03-14-2005, 09:47 PM
  3. Drag and Drop Problem
    By Xin Li in forum .NET
    Replies: 0
    Last Post: 03-13-2002, 05:03 AM
  4. Re: Drag and Drop Multiple Files
    By Don Bevis in forum VB Classic
    Replies: 3
    Last Post: 08-01-2001, 05:10 PM
  5. Extend Constituent Control Drag Events
    By Todd Mitchell in forum VB Classic
    Replies: 3
    Last Post: 04-09-2000, 12:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.