C# codedataGridView1.Rows[0].Cells[0].Selected=true; dataGridView1.Focus(); SendKeys.Send("{F2}");
dataGridView1.Rows[0].Cells[0].Selected = true; dataGridView1.Focus(); SendKeys.Send("{F2}");
dataGridView1.Rows[0].Cells[0].Selected = true;
引用 11 楼 nimingxin1987 的回复: 引用 10 楼 luols 的回复:C# code dataGridView.Focus(); dataGridView.CurrentCell= dataGridView.Rows[0].Cells[0]; dataGridView.BeginEdit(true); 代码放在某个按钮里是可以的,可是放在Form_Load里就达不到效果了。。 放在Form1_Shown里边,给分吧 高手。。
引用 10 楼 luols 的回复:C# code dataGridView.Focus(); dataGridView.CurrentCell= dataGridView.Rows[0].Cells[0]; dataGridView.BeginEdit(true); 代码放在某个按钮里是可以的,可是放在Form_Load里就达不到效果了。。 放在Form1_Shown里边,给分吧
C# code dataGridView.Focus(); dataGridView.CurrentCell= dataGridView.Rows[0].Cells[0]; dataGridView.BeginEdit(true); 代码放在某个按钮里是可以的,可是放在Form_Load里就达不到效果了。。
dataGridView.Focus(); dataGridView.CurrentCell = dataGridView.Rows[0].Cells[0]; dataGridView.BeginEdit(true);
110,502
社区成员
642,567
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧