How can I programmatically multiselect items in a ListView?

  • Thread starter Thread starter Tom P.
  • Start date Start date
T

Tom P.

I can set the selectedItem as a one-off selection but how do I set a
multiple selection from code? All the item selection properties are
ReadOnly and if I just set Item.Selected the selection changes from
one to the next but it never selects more than one.

Tom P.
 
I can set the selectedItem as a one-off selection but how do I set a
multiple selection from code? All the item selection properties are
ReadOnly and if I just set Item.Selected the selection changes from
one to the next but it never selects more than one.

Tom P.

By using
ListViewItem.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

Back
Top