Reseting cells values

Hi,

I’ve attached a dhtmlx_grid on my layout.
The first column is a radio one, and others are text ones. When a choose another row by clicking on a radio buton, my script resets the database values.
I would like to reset the grid display too, to be ‘user friendly’.
How could I do that ?

There are multiple ways.
You can reload whole grid, by using

grid.clearAll();
grid.loadXML(url)

or by changing the necessary cell on the client side

grid.cells(id,index).setValue(new_value);

Thanks for your help.

The first method works, but it’s quit heavy to reload the grid on each modification.
I don’t understand the second one :

id = the cell Id, so ‘1’, ‘2’, ‘3’, … ?
index = … ?

index is a zero base column index : 0,1,2,3,4

It works ! :mrgreen:

Thanks for your help