We created a grid list control dynamically by calling
iGrid = new (ELeave) CAknGrid;
iGrid->SetLayoutL( false, true, true, 2, 2, TSize(50, 68), 5, 5 );
But it only show a the first row or column depending on the orientation. So in the layout, we currently have 2 rows and 2 columns. the first two grid items will show up, but all others are not visible and cannot be selected. However, when we switch the view from grid to list, all the list items are present. So we know the list items are there.