You can only connect non grid groups together, the items that do not have a yellow grid when placing. If you want to move everything with grid items, you will need to copy the entire building and make it into a blueprint and then place again. If your building exceeds 4000 pieces however, you will have to manually rebuild your building if you need to move it.