您的位置:首页 > 其它

DataGridView中设置指定行为当前行

2010-08-27 09:41 218 查看
比如使用DataGridView显示过程信息,在数据量大时可自动上滚:

DataGridViewRow dr = this.dataGridViewX1.Rows[this.dataGridViewX1.Rows.Count - 1];
dr.Selected = true;
this.dataGridViewX1.CurrentCell = dr.Cells[0];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐