PDA

Click to See Complete Forum and Search --> : Using ListView control


Rodik
Jan 28th, 2000, 06:48 AM
How can I read something in another column than number 1?

ListView1.Selected.Text gives me what's written in the first column...

Does anyone know how I can find ut what's inside the second and third?

jpark
Jan 28th, 2000, 07:11 AM
ListView1.SelectedItem.ListSubItems(1).Text


Joon

razzaj
Jan 28th, 2000, 07:13 AM
try :

Text1 = ListView1.SelectedItem.SubItems(1)
in a form with a listview and a textbox , this will put what ever in the second column
in the textbox ... to read the third column :
Text1 = ListView1.SelectedItem.SubItems(2)
etc ...



------------------
- regards -
- razzaj -