archer_coal
Well-known member
- Joined
- Apr 4, 2003
- Messages
- 96
I have a listview with 2 columns
column1 is Item column2 is subitem
there are only 1 subitem per item
i was wondering if there was a way to get the subitem text value from column2 when double clicking Item in column 1
here is what i tried with no luck
The above code retrieves the text in the Items column for some reason and not the Subitem
any help?
column1 is Item column2 is subitem
there are only 1 subitem per item
i was wondering if there was a way to get the subitem text value from column2 when double clicking Item in column 1
here is what i tried with no luck
Code:
Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
Dim i as integer
Dim str as String
str = ListView1.SelectedItems(i).SubItems(i).Text
lblStr.Text = str
End Sub
The above code retrieves the text in the Items column for some reason and not the Subitem
any help?