When snapping is enabled, moving an object within the snap zone of a grid location will cause the object to snap to that location.

1. Click the Snap tool on the left toolbar and check the Snap to Guides box command to control snapping to guides.

2. You can also check the Snap to Document Grid box which will control both snapping to document grid and the baseline grid.