I'm agreed with rvk. DBGrid is not the place to do this. I created a small demo for using DBEdits and Edits in a configdialog with the buttons you want. I hope it helps.
Thanks @mangakissa, I'm going to study your code.

I think it will be very instructive.
But I'm afraid, I need to modify a complete table (no only a row) and then, have the ability to discard or save all the changes.