Object Grid

Does anyone know if its possible to assign a grid to an object? Say… a large rectangle? That way when the rectangle is moved the grid goes along with it.