There is a shortage of documentation on the grid, but I've noticed that I often glean a lot from the code (even when I don't understand it all) -- I guess that's one of the beauties of opensource. So, in addition to any other resources you find, take a glance at this...
http://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#1376