Update row count in grid sizer

On windows, the grid.GetRows() will always return zero if not explicitly
set to something else.