选中datagridview要选择的行
int SelectedRow=6;
dataGridView1.FirstDisplayedScrollingRowIndex = SelectedRow;
dataGridView1.Rows[SelectedRow].Selected = true;
int SelectedRow=6;
dataGridView1.FirstDisplayedScrollingRowIndex = SelectedRow;
dataGridView1.Rows[SelectedRow].Selected = true;