# Undo and redo
This feature allows you to revert changes made in the data grid. It is very useful in a normal day-to-day routine, especially when the change is unintentional. This feature stacks the changes made with the user interface of the grid. Modifications done programatically are ommitted.
The basic methods are
undo() method rolls back the last performed action, and the
undo() restores it.
This feature is provided by the
undoRedo plugin, and is enabled by default.
Not all user-triggered actions are covered by this feature. See the below list of actions that won't be added to the history of changes:
- Move column
- Move row
# Basic demo
Make some changes to the grid below and the use the Ctrl/⌘Cmd + Z command to redo the previous state. Then, use Ctrl/⌘ Cmd + Y to restore it.