Data Processer

I am using grid and dataprocess versoin 1.6 ( PROF )

after the data process inserts rows into the grid and database the grid then will keep all rows hilghted but the last row.

var mygrid = new dhtmlXGridObject("gridboxSS");
mygrid.setImagePath("../dhtml/dhtmlxGrid/codebase/imgs/");
mygrid.preventIECaching(true);
mygrid.setHeader("Process Id, Type,Order,Operation, Completed, Passed, Failed");
mygrid.setColumnIds("id,type,operation_order,operation")

mygrid.setInitWidths("75,75,75,75,75,75,75")
mygrid.setColAlign("left,left,left,left,left,left,left")
mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro");
mygrid.setColSorting("int,str,int,str,str,str,str")
mygrid.setMultiLine(false);

mygrid.init();  
mygrid.attachEvent("onRowSelect", "gridrowchanged" );     
mygrid.setSkin("modern");
    

mygrid.loadXML("process_flow_setup_data.php?id=<? echo $nextid; ?>&type=<? echo $process_type; ?>");

mygrid.setColumnHidden(0,true);
mygrid.setColumnHidden(1,true);


myDataProcessor = new dataProcessor("update_temp_process_flow.php");
myDataProcessor.enableDataNames(true);
myDataProcessor.defineAction("error",myErrorHandler);
myDataProcessor.setTransactionMode("GET");

myDataProcessor.init(mygrid);

var mygrid2 = new dhtmlXGridObject(“gridbox2”);
mygrid2.setImagePath("…/dhtml/dhtmlxGrid/codebase/imgs/");
mygrid2.preventIECaching(true);
mygrid2.setHeader(“Operation,Description,C,P,F”);
mygrid2.setInitWidths(“100,200,75,75,75”)
mygrid2.setColAlign(“left,left,left,left,left”)
mygrid2.setColTypes(“ro,ro,ro,ro,ro”);
mygrid2.setColSorting(“str,str,str,str,str”)

mygrid2.setSkin( "modern" );
mygrid2.init();  
mygrid2.loadXML("operation_list_data.php");

mygrid2.attachEvent("onRowDblClicked", "grid2RowClicked");  


function grid2RowClicked(rIndex, cIndex)
{
    q_r = mygrid2.cells( rIndex, 0).getValue();  
    completed = mygrid2.cells( rIndex, 2).getValue();  
    passed = mygrid2.cells( rIndex, 3).getValue();  
    failed = mygrid2.cells( rIndex, 4).getValue();  
    
    row = mygrid.getRowsNum();
    
    mygrid.addRow( row+1, [<? echo $nextid;?>,<?echo $process_type; ?>, row+1, q_r, completed,passed,failed],row);
}

Your code looks correct. Please try to update your version of dhtmlxGrid and dhtmlxDataProcessor.