【问题标题】:C#: Is there a way to SET the selected index of an item in listview at runtime?C#:有没有办法在运行时设置列表视图中项目的选定索引?
【发布时间】:2009-05-03 15:26:21
【问题描述】:

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

【问题讨论】:

    标签: c# .net winforms


    【解决方案1】:
    【解决方案2】:

    试试这个

    listView.SelectedIndices.Clear();
    listView.SelectedIndices.Add(someIndex);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-11
      • 2016-03-17
      • 2022-12-01
      • 2021-11-11
      • 1970-01-01
      • 1970-01-01
      • 2021-12-09
      • 1970-01-01
      相关资源
      最近更新 更多