Reading dhtmlxGrid values within JavaScript.

Hi all,

I’m having a little trouble finding this information.

I’m having a grid populated with values. Once the user selects the row from the grid, I need to read the values of that are already present within the grid.

The below code gives me the ID of the row selected, but I need values from the other columns as well.

 Grid.attachEvent("onRowSelect",function(rowId,cellIndex){
 alert("Row with id="+rowId+" was selected"); }

Appreciate the help.

Thank you very much.

Try to use getValue() method top collect the values of a needed cells:

grid.cellById(rowid,colind).getValue()

thank you.