We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

CommandStack recording only GridSelectionStateCommand

Hi, Clay! I''d like to put up a ''Back'' button for my GridControl, so the user can go back to former positions in the grid. For this functionality I need the grid to record only GridSelectionStateCommands. Is it possible?

1 Reply

AD Administrator Syncfusion Team July 13, 2005 11:14 AM UTC

I do not know of a way to only generate undo information on specific commands. You can continually Peek the undo/redo stack before you call Undo/Redo. If the command on top is not a GridSelectionStateCommand, you could Pop the stack, continually until there is a GridSelectionStateCommand on top.

Live Chat Icon For mobile
Up arrow icon