datagridview,如何选中行 我选了N行,dataGridView4.SelectedRows.count==0始终,是不是还需要编程实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 设置:dataGridView4.SelectionMode = DataGridViewSelectionMode.CellSelect;ORdataGridView4.SelectionMode = DataGridViewSelectionMode.FullRowSelect试试 this.dataGridView1.MultiSelect = trueprivate void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { textBox1.Text =dataGridView1.Rows[dataGridView1.CurrentRow.Index ].Cells["id"].Value.ToString() ; } C#数据库插入数据问题 C# 如何终止被挂起的线程 有关汉邦DVR开发的问题!! 日历控件,选择年的问题。 NetBar的布局 请问在c#代码中,怎样才能重启某个windows服务? 各位大哥,小弟菜,一段全部错误的代码请各位大哥更正。 关于dbf数据读取问题 急!!!LargeIcon或SmallIcon状态下的ListView如何实现ListViewItem任意移动?及右击任意ListViewItem在其上弹出菜单来? .Net中控件属性树是如何实现的? 哪些软件使用了devexpress皮肤美化控件? 新手求教。。。。谁能帮我看看一下ToolStrip空间代码哪错了?
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{ textBox1.Text =dataGridView1.Rows[dataGridView1.CurrentRow.Index ].Cells["id"].Value.ToString() ;
}