Loop count in video clip settings, how to apply changes to composition?
I'm guessing your videos are of different durations. If no, just precompose the grid layers and loop that composition. If yes, worst case scenario is to precompose each video layer and loop those.