Added toStringCallback option. Fixed datagrid parameters.

Fixed unit tests

Improved code coverage of Datagrid