您的位置:首页 > 其它

dataGridView中设置光标到指定的行

2013-09-23 14:37 204 查看
dataGridView中显示编辑刷新后,自动选定修改行,或者在新增数据后选择新增的行时,需要将光标设置到选中的行:

dataGridView1.CurrentCell = dataGridView1[1, iSeletedRowIndex];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: