About the Popup show in DataGrid

hello,
I want to this:

I have a datagrid,when i selected one row,then the Popup was show,
and,I selected next,the Popup was refresh

How can I do

Hello
Try the next approach:

var myGrid; var myPop; function doOnLoad(){ myGrid = new dhtmlXGridObject('gridbox'); myGrid.setImagePath("../dhtmlxSuite_v44_pro/codebase/imgs/"); myGrid.attachEvent("onRowSelect", function(rid,ind){ var clicked = myGrid.cells(rid,ind).cell; var val = myGrid.cells(rid,ind).getValue(); showPopup(clicked, val) }); myGrid.init(); myGrid.load("../___xml/grid.xml"); if (!myPop) { myPop = new dhtmlXPopup(); } } function showPopup(inp, val) { myPop.hide(); var x = window.dhx4.absLeft(inp); var y = window.dhx4.absTop(inp); var w = inp.offsetWidth; var h = inp.offsetHeight; myPop.attachHTML(val); myPop.show(x,y,w,h); }

Thank you very much,but,your code was used cell,I want to used one row,not cell in row.
I used code:myGrid.cells(rid,ind).cell.parentNode.Do you have an other code for esay