dataGridView中显示编辑刷新后,自动选定修改行,或者在新增数据后选择新增的行时,需要将光标设置到选中的行:
dataGridView1.CurrentCell = dataGridView1[1, iSeletedRowIndex];
dataGridView中显示编辑刷新后,自动选定修改行,或者在新增数据后选择新增的行时,需要将光标设置到选中的行:
dataGridView1.CurrentCell = dataGridView1[1, iSeletedRowIndex];