Listview programmatically select item

G

garrick

How can I programmatically select a listview item? I can't
seem to find a native .net method - do I need to drop down
to WIndows API level?

I have MultiSelect off, so one (or none) items should be
selected...
 
H

Herfried K. Wagner [MVP]

* "garrick said:
How can I programmatically select a listview item? I can't
seem to find a native .net method - do I need to drop down
to WIndows API level?

Set the item's 'Selected' property to 'True'.
 

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