Grid unable to set the cell value from client side

Hi to all,

I have two grid on one page grid1 and grid2 while loading the data is loaded in grid1 and then on clicking the grid1 row new row in grid2 is created with addrow function .Now i want to make the changes mean edit the row1 of the grid2 and apply those change to other rows of the grid2 but i am unable to setvalue to cell .

I am selecting the first row of grid2 and clicking on apply button

//getting the first row and cell 3 value 
var quantity = selectedServicesGrid.cells(1,3).getValue();

//Want to set the above quanity to second row and 3 cell .
selectedServicesGrid.cells(2,3).setValue(quantity);

Above code is not working.

any help

Unfortunately the issue cannot be reconstructed locally.
Please, provide a more complete sample of your code to reconstruct the issue.