How to make read-only cells writeable again?

Here is some sample code:

   GetParam()->SetLockReadOnly(FALSE);
   SetStyleRange(range, CGXStyle().SetReadOnly(FALSE));
   GetParam()->SetLockReadOnly(TRUE);

You might also use the CGridUnlock class presented in “How to programmatically change cells that have been marked read-only?”