Selecting ListViewItem?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

It seems like the ListView.SelectedItems is a ReadOnly Property..

How do I after a "populate" of a ListView preselect one or more Items?

/Lars
 
Lars Netzel said:
It seems like the ListView.SelectedItems is a ReadOnly Property..

How do I after a "populate" of a ListView preselect one or more Items?

Set the 'ListViewItem' objects' 'Selected' properties to 'True'.
 
You have to set the Selected property of the specific Item to True e.g.:
ListView1.Items(0).Selected = 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

Similar Threads


Back
Top