for (int i = 0; i < dataGridView1.ColumnCount; i++) { if (i == 0) { //set to ReadOnly dataGridView1.Columns[i].ReadOnly = true; } else { dataGridView1.Columns[i].ReadOnly = false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)