Added some error handling

Go
Added save datagrid to table selected function

as named