开发者

ListView [VirtualMode] change selected index

VirtualMode = true
MultiSelect = false

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

SelectedIndices is reado开发者_StackOverflow社区nly.


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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜