Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 28, 2009 20:15
open dhtmlx forum
how to get value in a cell in dhtmlgrid

how i will get value of each cell ?
Answer posted by dhxSupport on Jan 29, 2009 05:52
The most simplest way is to use cell.getValue() method.
for (i=0; i<grid.getRowsNum; i++){
   for (j=0; j<grid.getColsNum; j++){
        alert(grid.cellByIndex(i,j).getValue());
   }
}
More information about eXcells API you can find here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Excell_API_reference.html#grid_excellsapi