ListView [VirtualMode] change selected index

3k Views Asked by At
VirtualMode = true
MultiSelect = false

I can get selected index item, but how change it?

SelectedIndices is readonly.

1

There are 1 best solutions below

0
On BEST ANSWER

Not sure if you've found a solution, but I was having the same problem and just came up with this:

listView1.SelectedIndices.Clear();
listView1.SelectedIndices.Add(indexToSelect);