Stripe domains are studied in perpendicular magnetic anisotropy films nanostructured with a periodic thickness modulation that induces the lateral modulation of both stripe periods and inplane magnetization. The resulting system is the 2D equivalent of a strained superlattice with properties controlled by interfacial misfit strain within the magnetic stripe structure and shape anisotropy. This allows us to observe, experimentally for the first time, the continuous structural transformation of a grain boundary in this 2D magnetic crystal in the whole angular range. The magnetization reversal process can be tailored through the effect of misfit strain due to the coupling between disclinations in the magnetic stripe pattern and domain walls in the in-plane magnetization configuration.