I wanted to transfer data from listview1 to listview2 when clicked

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1811 Views - Last Post: 29 December 2012 - 04:05 AM Rate Topic: -----

#16 imchivaa  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 25-December 12

Re: I wanted to transfer data from listview1 to listview2 when clicked

Posted 29 December 2012 - 03:54 AM

Alright, the above problem solved (Sending selected data from one listview to another listview).
Now i am facing problem calling the specific column's subitems to label box
Here is what i mean :

I have added 3 items to my listview2 and when i click confirm purchase, i want it to sum all the price and show the total in my label1.

I am able to archive that only for the 1st items's subitem with this code

Label1.Text = lv1.SelectedItems(0).SubItems(4).Text

//because selecteditems is pointing to 0 which is 1st item in the list and subitems is pointing to 4 which is price column.

How if i have more than 1 item? Can help me on this? I really new to listview
Was This Post Helpful? 0
  • +
  • -

#17 imchivaa  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 25-December 12

Re: I wanted to transfer data from listview1 to listview2 when clicked

Posted 29 December 2012 - 04:05 AM

I found a solution =
http://www.vbforums....lue#post3649151

Alter a bit and it works well!
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2