I too have been trying to get around this issue? the cancel button seems to override anything you try to do with this.. seems like a bug.. anyone else got a work around for this issue?
I thought the afterrestore function does not get called when cancel is clicked from reading other discussions.
Â
from the example above i see the same results. I want the cell to editable on add and not on edit. when you add code like the original user did the cell works properly except when you click the cancel button.  if you click add it works, if you click edit it works. but if you click edit then cancel then click add, the cell is left in the non-edit state. if you cancel and then click add again it starts working again.
if i put alerts in and display the editable property its correct but its not used.. this tells me that the value of editable is decided before onselectrow is fired to reset it.
if i put alert in the afterrestore it is never called.Â
this issue only seems to happen when cancel is called when it edit mode.Â