C# 我已经获取前选项index,怎样通过index来获取listview选中行的第一列?求代码

currentIndex = this.listView1.SelectedItems[0].Index;//取前选项index

string str = this.listView1.Items[currentIndex].Text;
//或
string str = this.listView1.Items[currentIndex].SubItems[0].Text;

温馨提示:内容为网友见解,仅供参考
第1个回答  2014-10-16
string str;
str = listview1.Items[currentIndex].Caption //str就是你想要的值
相似回答