如题:
一ListView demo 不知道怎么获取任意选择某行的其中一列的值行是随意选择, 列可以固定死 ,这个该怎么做? this.listView1.SelectedItems[0].SubItems[3].Text;
this.listView1.Items[1].SubItems[3].Text;
向上述代码都是固定死行的 所以不可取
一ListView demo 不知道怎么获取任意选择某行的其中一列的值行是随意选择, 列可以固定死 ,这个该怎么做? this.listView1.SelectedItems[0].SubItems[3].Text;
this.listView1.Items[1].SubItems[3].Text;
向上述代码都是固定死行的 所以不可取
{
ListView.SelectedIndexCollection indexes = listView1.SelectedIndices;
foreach (int index in indexes)
{
msg = this.listView1.Items[index].SubItems[3].Text;
break;
}
}已经解决