Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Angus on Oct 03, 2007 15:48
open dhtmlx forum
dhtmalGrid-changing a cell value using a script

Hi, How do I change the value in a dhtmalGrid cell using a script? for example, I want to change the value of a specific cell using a script attached to a toolbar button or menu option.

Thanks in advance.

Angus
Answer posted on Oct 03, 2007 18:04
You can set value in next way

grid.cell(id,ind).setValue("new");

id - id of row
ind - index of column

grid.cell(id,ind) - cell object, it can be used to get|set different aspects of cell

also cell object can be obtained by row index
    grid.cell2(row_index,ind)
Answer posted by Angus on Oct 04, 2007 11:14
Thanks, much appreciated.