I have a binded DataGridView that contains a large amount of data. The problem is that some cells has to be ReadOnly and also when the user navigates with TAB or ENTER betwe
I iterated through the datagrid with the following code:
dataGridViewTest.DataSource = persons; foreach (DataGridViewRow row in dataGridViewTest.Rows) { foreach (DataGridViewCell cell in row.Cells) { if (cell.Value.ToString() == "John") { cell.ReadOnly = true; } } }