Get changed row not working?

Hi all!
I use the function grid.getChangedRows(), however, the row_id does not return if I use function grid.cells(rowid, col_ind).setValue(“sth”) to change cell value in a row?
How could I detect more efficiently the changed row ?
Thanks,

In case of programmatic value change you should also mark the cell as changed:

grid.cells(rowid, col_ind).cell.wasChanged=true;