Hello,
Can anyone tell me how I can check which row was clicked in a listview control. I am trying to read in subitems in row, but can't seem to read it in for a particular row. I can loop through the entire control and check for a subitem value, but can't do it for the row that was clicked. Here is the code that is I use to loop through the listview control.
I am looking to see, if there is a way to check for selected row when the user clicks or double clicks a row in a listview control. Thanks for your help
Can anyone tell me how I can check which row was clicked in a listview control. I am trying to read in subitems in row, but can't seem to read it in for a particular row. I can loop through the entire control and check for a subitem value, but can't do it for the row that was clicked. Here is the code that is I use to loop through the listview control.
VB.NET:
For i = 0 To lvCards.Items.Count - 1
If lvCards.Items(i).SubItems(6).Text() = "Y" Then
blnDefaultCheck = True
Exit For
Else
blnDefaultCheck = False
End If
Next
I am looking to see, if there is a way to check for selected row when the user clicks or double clicks a row in a listview control. Thanks for your help