J
John Devlon
Hi,
Does anyone know how to get a value of a second column of a selected item
in Listview.
I've create a listview and added this code
Listview.Items.Clear()
Listview.Columns.Clear()
Listview.View = View.Details
Listview.Columns.Add("ID", 0, HorizontalAlignment.Left)
Listview.Columns.Add("Toppic", 150, HorizontalAlignment.Left)
Listview.Columns.Add("Name", 150, HorizontalAlignment.Left)
Listview.FullRowSelect = True
I can retreive the data from the first column, i've selected...
myString = Listview.SelectedItems.Item(0)
... but I can't get any data out of the next columns i've selected...
myString2 = Listview.SelectedItems.Item(1)
myString3 = Listview.SelectedItems.Item(2)
.... this doesn' work ...
Does anyone have any idea's
Thanx
John
Does anyone know how to get a value of a second column of a selected item
in Listview.
I've create a listview and added this code
Listview.Items.Clear()
Listview.Columns.Clear()
Listview.View = View.Details
Listview.Columns.Add("ID", 0, HorizontalAlignment.Left)
Listview.Columns.Add("Toppic", 150, HorizontalAlignment.Left)
Listview.Columns.Add("Name", 150, HorizontalAlignment.Left)
Listview.FullRowSelect = True
I can retreive the data from the first column, i've selected...
myString = Listview.SelectedItems.Item(0)
... but I can't get any data out of the next columns i've selected...
myString2 = Listview.SelectedItems.Item(1)
myString3 = Listview.SelectedItems.Item(2)
.... this doesn' work ...
Does anyone have any idea's
Thanx
John