码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-08-06 14:07:56      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:center   ring   sel   style   strong   url   sub   code   nbsp   

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

 

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

标签:center   ring   sel   style   strong   url   sub   code   nbsp   

原文地址:http://www.cnblogs.com/dongteng/p/7294388.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!