Editable table widget - Disabling Delete Record for certain rows only?

 I already looked at this link: 


But it only covers the general list. I want only to disable the delete record to a certain row. How can this be achieved?
This may still need tweaks, but you can try following these instructions.