PDA

Click to See Complete Forum and Search --> : text from listview


nswan
Jan 14th, 2003, 11:46 AM
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

nswan
Jan 14th, 2003, 01:19 PM
no probs i sorted it :D


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