Click to See Complete Forum and Search --> : Listview multiple select
shersu
Jun 11th, 2009, 05:48 AM
Hi,
Is there any way I can select multiple items in a listview programatically in WPF?
chris128
Jun 12th, 2009, 01:55 PM
You can just add the item to the SelectedItems collection, like so:
ListView1.SelectedItems.Add(ListView1.Items(1))
ListView1.SelectedItems.Add(ListView1.Items(2))
Obviously there I am just adding them by specifying their index but thats just because I dont know exactly how you want to do this.. hopefully it helps anyway :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.