C#中:有没有办法在运行时要设置项目的选定索引列表视图中?没有办法、视图、时要、索引

2023-09-04 05:27:38 作者:长街

C#中:有没有办法在运行时要设置项目的选定索引列表视图中的

C#: Is there a way to SET the selected index of an item in listview at runtime?

推荐答案

找到的你想的选择的收集和的设置它的公共属性选择=真。

Find the item in the collection you want selected and set its public property Selected = true.