C# 获取ListView中选中行中对应的列数据

 if (MediaList.SelectedIndices != null && MediaList.SelectedIndices.Count > 0)
                {
                    ListView.SelectedIndexCollection c = MediaList.SelectedIndices;
                    string mediaRtspUrl = MediaList.Items[c[0]].SubItems[2].Text.ToString();
                 
                }

 

相关文章:

  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案