VB.NET - List View Problem - Asked By Ralph Acido on 08-Aug-06 04:46 AM

How to get the index of the selected item in a lIst View in VB.net?

SelectedIndices might save you the time - Asked By J S on 08-Aug-06 05:06 AM

[CODE]If ListView1.SelectedItems.Count > 0 Then
    Dim test3 As ListViewItem = ListView1.SelectedItems.Item(0)

     If test3.Selected = True Then
         test = test3.Index ' index number selected
    End If
End If[/CODE]

On a side note, if you're only interested in the index, SelectedIndices
might save you the time to create the ListViewItem and get the index from

Do as - Asked By Shallu Gupta on 08-Aug-06 05:24 AM

you can get the index of selectedItems in a list view as...