DataGridView readonly cells or columns

David Anton

Newcomer
Joined
Apr 12, 2006
Messages
21
Does anyone know the work-around for the DataGridView bug which causes the "ReadOnly" property, applied at the column, row, or cell level, to sometimes not have any effect? i.e., the cell can still be edited by the user. The ReadOnly property at the grid level works fine, it's just the other levels that are flaky.

When I google this, it appears that many have experienced the bug, but the work-around is unclear.
 
Ack - forget it. It was my own bug - I set the grid-level ReadOnly property to false at some point which of course overrode all the cell-level ReadOnly's.
 
Back
Top