select a line

how to select a line and return the values ​​of two columns in javascript alert?

Try to make something similar:

mygrid.attachEvent("onRowSelect", function(id,ind){ var val1 = mygrid.cells(id, 0).getValue() var val2 = mygrid.cells(id, 1).getValue() alert ("1="+val1+", 2="+val2); });