Set the gridview column count depending on screen size and orientation.