method Grid.RedoRemoveAction ([Action as Variant], [Count as Variant])
Removes the last the redo actions that can be performed in the control.

TypeDescription
Action as Variant [optional] A long expression that specifies the action being removed. If missing or -1, all actions are removed. 

The Action parameter can be one of the following:

  • exListUndoRedoAddItem(13) ~ "AddItem;ITEMINDEX", indicates that a new item has been created
  • exListUndoRedoRemoveItem(14) ~ "RemoveItem;ITEMINDEX", indicates that an item has been removed
  • exListUndoRedoChangeItemPos(15) ~ "ChangeItemPos;ITEMINDEX", indicates that an item changes its position or / and parent
  • exListUndoRedoChangeCellValue(16) ~ "ChangeCellValue;ITEMINDEX;CELLINDEX", indicates that the cell's value has been changed
  • exListUndoRedoChangeCellState(17) ~ "ChangeCellState;ITEMINDEX;CELLINDEX", indicates that the cell's state has been changed

For instance, RedoListAction(13) removes only AddItem actions in the redo stack.

Count as Variant [optional] A long expression that indicates the number of actions to be removed. If missing or -1, all actions are removed. For instance, RedoListAction(13,1) removes only the first AddItem action from  the redo stack.
Use the RedoRemoveAction method to remove the first action from the redo queue. Use the RedoRemoveAction() ( with no parameters ) to remove all redo actions. The RedoListAction property retrieves the list of actions that an redo operation can perform. The UndoRemoveAction method removes the last action to be performed if the Undo method is invoked.

The records of the Undo/Redo queue may contain actions in the following format:

Also, the Undo/Redo queue may include:

.