在DataGridView选中指定行

            if (this.dataGridView.Rows.Count > 1)
            {
                DataGridViewRow dr = this.dataGridView.Rows[i];
                dr.Selected = true;
                this.dataGridView.CurrentCell = dr.Cells[0];
            }

posted on 2010-09-03 15:52  龙少爷  阅读(428)  评论(0编辑  收藏  举报

导航