Results 1 to 2 of 2

Thread: text from listview

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    text from listview

    hi,

    i have a listview with 5 columns.
    I can't figure out how to get the text from each column when a row is selected.

    Thanks for any help.

    Nick

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    no probs i sorted it

    Code:
    dim lstItem as new listitem()
    
    lstItem = ListView1.SelectedItems(0)
    
    temp1 = lstItem.Text
    temp2 = lstItem.SubItems(1).Text
    temp3 = lstItem.SubItems(2).Text
    temp4 = lstItem.SubItems(3).Text
    temp5 = lstItem.SubItems(4).Text

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width