今天花了很多时间来得到listview中选定行中某定段的值:
主要收获如下:
1。。。得到选定行第二个字段的值:
string txt = this.listView1.SelectedItems[0].SubItems[1].Text;
MessageBox.Show(txt.ToString());
2。。。得到选中行的行号:
int index = Convert.ToInt32(this.listView1.SelectedIndices[0].ToString());
MessageBox.Show(index.ToString());