gradlisation of the two-way grid view