Derive the class datagriew and override edit method.
If the selected row is not the last one return, else call base edit method.