move multiple selected items from one listview to another listview (aka picklist)?

ridhwaans

Active member
Joined
Jun 1, 2012
Messages
34
Programming Experience
3-5
Hi,
I've got a listview1 and listview2
Both listviews have a number column and a name column (2 columns total)
Items can be multiselected for both listviews
the FullRowSelect property is ENABLED
when the user clicks a button, the all items that are selected (one or multiple) in listview1 are moved to listview2
All items are UNIQUE, there are no duplicate items (thats not an issue)

How to implement this? what is the code? please advise

Thanks
 
        For Each item As ListViewItem In Me.ListView1.SelectedItems
            item.Remove()
            Me.ListView2.Items.Add(item)
        Next
 
        For Each item As ListViewItem In Me.ListView1.SelectedItems
            item.Remove()
            Me.ListView2.Items.Add(item)
        Next


Yes I got it!
its the same code!

thank you John!
 
Back
Top