开发者

ListView [VirtualMode] change selected index

开发者 https://www.devze.com 2023-01-14 17:56 出处:网络
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 t
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

精彩评论

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

关注公众号