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