C1FlexSheet allows you to use Undo method to undo the last action and Redo method to repeat the last action performed.
Following code illustrates the use of Undo method:
flex.Undo()
flex.Undo();
Following code illustrates the use of Redo method:
flex.Redo()
flex.Redo();