现在有DataGridview控件dgv_mannage_goods,
我现在想实现窗口加载时实现将光标停在某一单元格中?

解决方案 »

  1.   

    如下就是一个例子:
    this.dataGridView1.CurrentCell = this.dataGridView1[2, 2];
    this.dataGridView1.BeginEdit(true);
      

  2.   


    可以试试把该DataGridview控件的EditItemIndex属性,设置为你想编辑的那一行。不行的话,再给我说一下。
      

  3.   

    dgvSubMenu.Columns[1].ReadOnly = false;
                dgvSubMenu.Columns[3].ReadOnly = false;
      

  4.   

    this.dgv_mannage_goods.CurrentCell = this.dataGridView1.Rows[0].Cells[0];
      

  5.   

    this.dataGridView1.CurrentCell = this.dataGridView1.Rows[0].Cells[0];
    this.dataGridView1.BeginEdit(true);