Show DhtmlxWindow with input fields on Edit cell

When user clicks on a grid field to edit, I want to open up a form in dhtmlxWindow to capture some data items, update the db table and then refresh the row in grid.

How do I do open dhtmlx window on grid cell edit?

Try to use something similar:

mygrid.attachEvent(“onEditCell”, function(stage,rId,cInd,nValue,oValue){
if (stage==0){
dhxWins.window(id).show();
}
});