Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
VirtualMode = true MultiSelect = false
我可以获得选定的索引项,但如何更改它?
SelectedIndices是只读的。
SelectedIndices
不确定您是否找到了解决方案,但我遇到了同样的问题,只是想出了这个:
listView1.SelectedIndices.Clear(); listView1.SelectedIndices.Add(indexToSelect);