Hi there
I was wondering if anyone knows how to get the index of the Item that is selected in a ListView.
Thanx in advance
Printable View
Hi there
I was wondering if anyone knows how to get the index of the Item that is selected in a ListView.
Thanx in advance
VB Code:
If ListView1.SelectedItems.Count > 0 Then Dim lvi As ListViewItem = ListView1.SelectedItems(0) End If
Thanx very much!!!!
I guess you've worked it out for yourself, but I just realised I never actually answered the question!!
lvi.Index gives you what you want.
BTW, I'll be in Fish Hoek in May next year. Is that anywhere near you?