determine if in grid in the gridContainer