TreeGrid support both nested and adjacency models. Here we demonstrate the nested model.
To work with TreeGrid nested set model three field should be available - left, right and level.
More about this model can be found here:
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html