您的位置:首页 > 编程语言 > C#

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

2017-08-06 12:17 295 查看

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

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: