Mouse to Grid?

When moving objects using the mouse move method is there a way to still make object snap to the grid? I really would like any advice.