DataGridView中设置指定行为当前行

比如使用DataGridView显示过程信息,在数据量大时可自动上滚:

            DataGridViewRow dr = this.dataGridViewX1.Rows[this.dataGridViewX1.Rows.Count - 1];
            dr.Selected = true;
            this.dataGridViewX1.CurrentCell = dr.Cells[0];

posted on 2010-08-27 09:41  龙少爷  阅读(412)  评论(0编辑  收藏  举报

导航