Hi,
Is there any way I can select multiple items in a listview programatically in WPF?
Printable View
Hi,
Is there any way I can select multiple items in a listview programatically in WPF?
You can just add the item to the SelectedItems collection, like so:
vb Code:
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 :)