Grid value changed - need a flag

I have a grid with loaded data. It is possible that user can make some changes anywhere within grid or add additional row, etc. Is it possible to compare grid data before changes-by-user with same grid data after changes-by-user and get sort of Boolean flag in case of any value is changed?



Thanks.

Grid supports
grid.getChangedRows()
Which will return IDs of rows, in which data was changed.

Also you can use grid serialization, the setSerializationLevel method , allows to configure it in such way, that serialization will contain only changed rows.