Selecting an Item in a listView

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.
 
A

AlexB

I believe the way to select an item is to set
the .SelectedIndex property to the index of the item.

Good luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top