dataGridView1 The ReadOnly property must be set to false. For each ReadOnly property of the row, true must be set. then, if necessary, you can set the ReadOnly cell to true.
//setting each row foreach (DataGridViewRow row in dataGridView1.Rows) { row.ReadOnly = true; } //setting on cell DataGridViewCell cell = dataGridView1.Rows[e.RowIndex].Cells[3]; dataGridView1.CurrentCell = cell; dataGridView1.CurrentCell.ReadOnly = false; dataGridView1.BeginEdit(true);
Danny source share