Undo Manager

Posted by: rodneybuxton on 8 September 2017, 2:42 pm EST

  • Posted 8 September 2017, 2:42 pm EST

    I've looked at post 49906 and am having trouble figuring out how to apply it...

    I have several combo boxes and based on the selections the user makes in the combo boxes I populate other cells with values.  When I undo, it undoes the changes in the combo boxes, but not the changes that I've populated to the other cells.  From what I've read in other places in the forum this is pretty much the way it works, but what I don't understand is how I get my changes into the undo manager so they can be undone?



  • Replied 8 September 2017, 2:42 pm EST

    I read those threads and studied the code and they appear to have created a SortRowsAction class that inherits from FarPoint.Win.Spread.UndoReDo.UndoAction, for your case you may call it DataLoadAction. In that class they have a Constructor which gets the SheetView and the SortInfo Object, I suppose you would need some struct that contained your changes as well as the sheetview. They also have Overrides for PerformUndoAction, SaveUndoState, and Undo functions, in which they put code specific to their needs. They put their changes into the Undo Manager with


    sra is an instance of their SotRowsAction class they created.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels