How to save data to database using dhtmlxtreegrid

Hello,
Please provide me sample of code which saves data to database in parent child relationship using dhtmlxtreegrid…

Thanks in advance.

Please, try to use the dhtmlxConnector for easy dealing with the server-side
dhtmlx.com/docs/products/dhtmlxConnector/

Try download the package for the required server-side. It will contain the samples for the treegrid component with the dataprocessor.