How to change cell value of the grid?

Hi:

I want to change a cell value by js function.For example,the current cell value of the grid is ‘myvalue’ on the page.now i click a button,and i want the cell value turn into “sample value”.
How to write the js function.

Something like

$$('grid').item(id).someProperty = "New value"; $$('grid').refresh(id)

Where

  • id - id of row in question
  • someProperty - property which is mapped to the column in question