11智能在线
新记
C# 我已经获取前选项index,怎样通过index来获取listview选中行的第一列?求代码
currentIndex = this.listView1.SelectedItems[0].Index;//取前选项index
举报该文章
相关建议 2014-10-16
string str = this.listView1.Items[currentIndex].Text;
//或
string str = this.listView1.Items[currentIndex].SubItems[0].Text;
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/fvv77p87m8m4qmmvms4.html
其他看法
第1个回答 2014-10-16
string str;
str = listview1.Items[currentIndex].Caption //str就是你想要的值
相似回答
大家正在搜
相关问题
C#如何通过选择行的index来找到listview显示的第...
C#使用listview需要获取当前选中行的各列的信息,怎么...
如何从C#中获取ListView中选中某一行某一列的值
C#,listview控件,我想判断选中的项是不是选中行的第...
C# ListView获取选定项的索引
C#中listview如何取得第一行第一列的值
c# 获取listview选中行的行号