How to view Sql generated during CRUD?
1. Turn on MySQL (or whatever database you use) logging (the sample uses MySQL)
mysql.server restart --general_log=1 --general_log_file=/usr/local/var/mysql/my.gen.log
2. Update values on the datagrid on the page
3. Review the SQL Update or Insert generated in the log file or use Tail command
tail -f /usr/local/var/mysql/my.gen.log
For an alternative approach (one without admin permission), please see this KB http://phpgrid.uservoice.com/knowledgebase/articles/215888