I have a dataGridView and I need that when the user clicks on any cell the whole row that contains this cell is selected too. (it has multiselect disbaled) I t
dataGridView
You can Do this: May be it can help you.
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex>0) { int rowindex = e.RowIndex; DataGridViewRow row= this.dataGridView1.Rows[rowindex]; } }