I am facing the following mystery:
When changing the read only property of a column to false and reopening the "edit columns" window, it mysteriously turns back to true.
Even when closing the designer and changing it in the designer code, the resulting execution does not allow edit, as well as when re-opening the designer you see true again.
this.numberDataGridViewTextBoxColumn1.DataPropertyName = "Number";
this.numberDataGridViewTextBoxColumn1.HeaderText = "Number";
this.numberDataGridViewTextBoxColumn1.Name = "numberDataGridViewTextBoxColumn1";
this.numberDataGridViewTextBoxColumn1.ReadOnly = true;//False is required
We thought it might be related to data binding. rebinding the grid did not help as well.
The is no other place in the code where it changes.
View Complete Post