如何获得选中行的信息呢比如我有一个DataGridView1我选中了第n行我想获得第n行的所有信息把第n行的数据用多个文本框来显示这样的功能怎么做呢?给点代码提示~~~~
解决方案 »
- 输出字符缓冲区太小,无法包含解码后的字符
- 调用SerialPort的DataReceive函数的问题
- DataSet主子表更新问题
- 根据字符长度改变button长度
- SqlParameter和DbParameter的使用?
- C#程序出错common language runtime debugging services
- 关于js窗口特效的问题
- 在线急等,高分求助。怎样将datagird中的数据生成一个excel表.谢谢了!
- ORACLE 10G ODBC数据源已添加成功,在VS2013的水晶报表里为何不能连接成功?
- Visual Studio源代码比较工具丢失Server Version面板
- C#实现的电子地图平面坐标转换为GPS坐标的资料
- WinFrom 判断窗体是否已存在?
{
this.tbUserid.Text = this.dataGridView1.CurrentRow.Cells["userid"].Value.ToString();
this.tbUserName.Text = this.dataGridView1.CurrentRow.Cells["username"].Value.ToString();
this.tbUserPhone.Text = this.dataGridView1.CurrentRow.Cells["phone"].Value.ToString();
this.tbUserMail.Text = this.dataGridView1.CurrentRow.Cells["mail"].Value.ToString();
}