See if the attached works for you. I basically grafted one of the elements (Y in this case) when creating the grid of points, then used the subset component to break down the resulting lists even further. The result is that each list is a row of points in the X direction with the first element in the path being the Y and the second element being the Z.