Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jonathan on Jun 17, 2008 15:41
open dhtmlx forum
dhtmlgrid

What methods or properties can I use to obtain the value of a given cell in a grid. For instance if from a script I want to obtain the value that is associated with the cell in row 2 column 10. I've tried using the cells object and its value property, but that is undefined. I've also tried meddling with the getUserData method, but that doesn't seem to return anything either.
Answer posted by Support on Jun 18, 2008 02:30
You can receive cell object as
    grid.cells(row_id,index)
or
    grid.cells2(row_index,index)
and use related API to get|set values
    http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Excell_API_reference.html#grid_excellsapi

    grid.cells2(2,10).getValue();