How does dataset stores old value?

Suppose we have changed several records and when do we save the recrds it sends the update command to database with new changed and old values.