Implement insert record in grid; delete rows has bugs.
Revert GetTypeName and 2 other subs. Fix insert and delete.

Still buggy, after a few inserts and deletes the data vanishes from the grid