Undoing Movements Made with the Gumball

Hello, I have a group object containing 40 objects. When I select one of them and move it with the gumball, I can handle the movement using my OnReplaceRhinoObject method. However, when I select two objects, I want to prevent the movement operation from occurring. Even though I try to prevent OnReplaceRhinoObject from triggering, the move action from Rhino’s gumball still happens. How can I stop this behavior?