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

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)

Thanks, much appreciated.