I have a listview control. The user can single select an item and it fills a textbox. They can then change the text in the textbox and click update button. When the update button is clicked the listview is losing the selected, highlighted row. How can I maintain this highlighting?
I have the index stored in a variable called intIndex. This isnt working at all. The code is running but the row isnt highlighting selected.
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click
ListView1.Items(intIndex).Selected = True