gridToGrid move row to last position?

I am using the professional version of the dhtmlxGrid. In my product a user can drag and drop a row from one grid to another. I have some post processing to change the column information using gridToGrid. This is working great.

My question is, how can I then add the dragged row to the last position in the receiving grid instead of the position it was dragged to?

Thanks!

You may try to use the following function:

mygrid.attachEvent("onDrop", function(sId,tId,dId,sObj,tObj,sCol,tCol){ ind=mygrid.getRowsNum()-1; Id=mygrid.getRowId(ind) mygrid.moveRowTo(sId,Id,"move"); });

Thank you so much!!! It works perfectly!!