Passing between the rows does not interrupt Salah, but it should be avoided unless it is necessary. This is based on the Hadith narrated on the authority of Ibn `Abbas (may Allah be pleased with him and his father): Once I came riding a she-ass when I had just reached the age of puberty. The Messenger of Allah (peace be upon him) was offering Salah at Mina. I passed in front of part of the row. Then, I dismounted and let my she-ass loose to graze and joined the row, and nobody disapproved of this. This act also causes distraction to the worshipers.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.
source: Is it permissible to pass in front-Salah