You can make grids and grid lines act magnetically so that the objects on the grid lines follow if you move the grid line.
To bind objects to grid lines, select the Magnetic grid plane checkbox.

In the Extension for magnetic area field, enter a distance from the grid line to extend the area within which the objects are bound to the grid lines.