Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David on Mar 08, 2009 03:31
open dhtmlx forum
Set cell content given a rowId and CellInd

Hi,

When I click a checkbox I want to chage the text of a cell. e.g. if I check a cell with the rowId of 1 and a cellInd of 2 I want to change the text of rowId 1 and cellInd of 1 from active to paused. What is the api fuction to change the content to the cell?

e.g. mygrid.setContent(1,1) = "Paused" ... an API of this type....

Thanks
Answer posted by dhxSupport on Mar 09, 2009 07:02

To set new cell's value you can use setValue("new value") method: 

mygrid.cellById(rowId,cellIndex).setValue("newValue");

More information about grid cell's API you can find here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Excell_API_reference.html#grid_excellsapi