DataGridView中设置指定行为当前行

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

            DataGridViewRow dr = this.dataGridViewX1.Rows[this.dataGridViewX1.Rows.Count - 1];
            dr.Selected = true;
            this.dataGridViewX1.CurrentCell = dr.Cells[0];
原文地址:https://www.cnblogs.com/wjhx/p/1809803.html