日期:2014-05-18  浏览次数:20802 次

获取DataGridView选中行的第一列的值
获取DataGridView选中行的第一列的值
 

------解决方案--------------------
this.dataGridView1.SelectedRows[0].Cells[0].Value
------解决方案--------------------
dataGridView1.CurrentRow.Cells[0].Value
------解决方案--------------------
string str = dataGridView1.CurrentRow.Cells[0].Value.ToString();
------解决方案--------------------
this.textBox1.Text = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();

------解决方案--------------------
顶!~
this.dataGridView1.CurrentRow.Cells[0].Value.ToString();