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