读书人

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

发布时间: 2012-06-16 20:34:32 作者: rapoo

获取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();

读书人网 >C#

热点推荐