dhtmlxGridObject with sub_row_ajax

I have:



mygrid = new dhtmlXGridObject(‘orders_grid’);

mygrid.setSkin(“dhx_blue”);

mygrid.setImagePath(“imgs/”);

mygrid.attachEvent(“onRowSelect”,rowSelect);

mygrid.init();



function rowSelect (id) {

     if (mygrid.cells(id,0).open){ //check that subrow exist

     if (mygrid.getRowById(id)._expanded)

     mygrid.cells(id,0).close()

     else

     mygrid.cells(id,0).open()

     }

     return true;

}



Now I added edit field on this grid and when I double click on the cell it causes the row to open and close. Is there a way to block the row opening when you double click on a cell to edit?



Thank you

Please check this article dhtmlx.com/docs/products/kb/inde … SubRowOpen