2
VirtualMode = true
MultiSelect = false

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

SelectedIndices is readonly.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
Yura Shinkarev
  • 5,134
  • 7
  • 34
  • 57
  • That's what I did: Set OwnDraw, add use internal var int (selectIndex). On operation add/del item and SelectedIndexChanged I change selectIndex. And in DrawSubItem use selectIndex – Yura Shinkarev Sep 02 '10 at 08:18

1 Answers1

6

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);
animuson
  • 53,861
  • 28
  • 137
  • 147
Solaran
  • 76
  • 1
  • 3