I have an Advanced datagrid which is getting data from MySQL DB using PHP. The rows in the adv. datagrid can be moved within the adv DG. The nodes in the adv DG are forming a tree like structure with parent then children and then sub children. What I want to do is whenever a row is moved, the new parent child structure should be updated to the database.