在DataGridView选中指定行

            if (this.dataGridView.Rows.Count > 1)

            {

                DataGridViewRow dr = this.dataGridView.Rows[i];

                dr.Selected = true;

                this.dataGridView.CurrentCell = dr.Cells[0];

            }

你可能感兴趣的:(datagridview)