expandGridIterator function

expandGrid Iterator