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.

Loader.
Up arrow icon