To automatically align objects with gridlines that go through the vertical and horizontal edges of other shapes, click To Shape.
Tip You can also snap the object to the grid by holding down ALT while you move, draw, or resize a drawing object.