Adding Row dynamically to TreeGrid

Hi,



I am adding Row dynamically to TreeGrid using following code:



mygrid.addRow(strObjectId, arr, “”,parentId,"");



It adds the new row as last child of parent row. It want make to make the new row as first child of parent row. Is it possible? If yes, please let me know how?



Thanks in advance.

You can use
mygrid.addRowBefore(strObjectId,arr,before_id);
where before_id - id of row before which, new one need to be added.


cool…its worked



U guys rock…