How to format all gridlines within a container?

So as a workaround was able to dock horizontal and vertical lines to make internal lines.