470,566 Members | 1,456 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,566 developers. It's quick & easy.

Selecting an Item in a listView

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.
Jul 21 '05 #1
1 1881
I believe the way to select an item is to set
the .SelectedIndex property to the index of the item.

Good luck
-----Original Message-----
I was wondering how I would go about programmincally selecting a listViewitem in a listView since the Selected val is read-only. I can't seem to findany other method that will do this for me. I'm using a listView to list someitems and want to be able to delete one, then have it select the next one inthe list automatically.
.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bob Geltz | last post: by
4 posts views Thread by Paddy | last post: by
2 posts views Thread by David Anderson | last post: by
3 posts views Thread by Bry | last post: by
3 posts views Thread by larry mckay | last post: by
1 post views Thread by Sean Chapman | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.