S Steve Jan 11, 2004 #1 I can't seem to get howto find the index of the selected item in a listview (View.Details).... Thanks in advance, steve
I can't seem to get howto find the index of the selected item in a listview (View.Details).... Thanks in advance, steve
S scorpion53061 Jan 11, 2004 #2 I can't seem to get howto find the index of the selected item in a listview (View.Details).... Click to expand... Try Dim item1 As ListViewItem = listView1.Items( e.Index )
I can't seem to get howto find the index of the selected item in a listview (View.Details).... Click to expand... Try Dim item1 As ListViewItem = listView1.Items( e.Index )
H Herfried K. Wagner [MVP] Jan 11, 2004 #3 * "Steve said: I can't seem to get howto find the index of the selected item in a listview (View.Details).... Click to expand... Have a look at the control's 'SelectedIndices' property.
* "Steve said: I can't seem to get howto find the index of the selected item in a listview (View.Details).... Click to expand... Have a look at the control's 'SelectedIndices' property.
I IbrahimMalluf Jan 11, 2004 #4 Hello Steve With ListView1 For Each MyIndex As Integer In .SelectedIndices 'MyIndex will contain an index into each selected item 'in your listview Next End With -- Ibrahim Malluf http://www.malluf.com ============================================== MCS Data Services Code Generator http://64.78.34.175/mcsnet/DSCG/Announcement.aspx ============================================== Pocket PC Return On Investment Calculator Free Download http://64.78.34.175/mcsnet/kwickKalk1.aspx
Hello Steve With ListView1 For Each MyIndex As Integer In .SelectedIndices 'MyIndex will contain an index into each selected item 'in your listview Next End With -- Ibrahim Malluf http://www.malluf.com ============================================== MCS Data Services Code Generator http://64.78.34.175/mcsnet/DSCG/Announcement.aspx ============================================== Pocket PC Return On Investment Calculator Free Download http://64.78.34.175/mcsnet/kwickKalk1.aspx