Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
Undo/Redo
posted

I am performing greid undo/redo with UltraGridAction.Undo/Redo.  It is working fine.

1.  Is there a way to know when undo stack  == 0 so I can disable the button>

2.  same question for redo stack

3.  Is there a way to grab the cell that was undone / redone so I can change it's background color

4.  I set the background color of a changed cell with UpdateCellEvent and Cell.Appearance.BackColor.  How do I "remove" the attribute so it reverts back to it's default background color (to be done in undo)

Peter

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Peter,

    howudodat said:

    1.  Is there a way to know when undo stack  == 0 so I can disable the button>

    2.  same question for redo stack

    Check out this thread.

    howudodat said:
    3.  Is there a way to grab the cell that was undone / redone so I can change it's background color

    I think you can use events like Before/AfterMultiCellOperation for this.

    You could call cell.ResetAppearance(). Of course, you will need to keep track of which cells have appearances applied to them so you know which ones to clear.

     

Children