Created On:  01/30/2013

Problem:

It is possible to set the ReadOnly property of a specific dataGridView column at design time.

Is it also possible to set the ReadOnly property of an individual cell of a dataGridView dynamically with code?

Resolution:

Yes, you can set the ReadOnly property of an individual cell of a dataGridView control dynamically through code.

Example:

    set

dataGridView1::Rows[sub-1]::Cells["Amount"]::ReadOnly to true