Selecting an Item in a listView

  • Thread starter Thread starter Sean Chapman
  • Start date Start date
S

Sean Chapman

I was wondering how I would go about programmincally selecting a listView
item in a listView since the Selected val is read-only. I can't seem to find
any other method that will do this for me. I'm using a listView to list some
items and want to be able to delete one, then have it select the next one in
the list automatically.
 
I believe the way to select an item is to set
the .SelectedIndex property to the index of the item.

Good luck
 
Back
Top