DataGrid

I want to insert,update and delete records in a datagrid but i want to use a custom form.i.e when i click a row a customized form appears in case of add or update where i enter info and then press "OK" to add or modify info.I want to use somehow datagrid for that.Instead of modifying directly in datagrid i want to do it in form but i want it to be modified when i press OK and updated comes into the datagrid. I hope u got the message. Ne help will be highly appreciated.

Loader.
Up arrow icon