The grid has tons of room to expand horizontally, no dimensions are set, yet the bottom scroll bar still appears because the vertical scroll bar overlaps the last column, so you have to scroll to see all of the last column.
I have a grid that may be similar and behaves OK for me. Mine is set up as follows:
- In a sizer where it can expand horizontally (although this may not actually matter).
- After creating, I got the size with mygrid.GetSize() then adjusted the width by adding wx.SYS_VSCROLL_X to allow for the vertical scrollbar width. I used mygrid.SetSize(…) and mygrid.SetMinSize(…) as I didn’t want the grid narrower. You might need to make further adjustments to make it really pretty - mine has a bit of a gap between the grid and the vertical scrollbar.
Thanks Jill. Just checked over everything, and the solution was I forgot to add wxEXPAND. It still doesn’t explain the problem I had, but it’s a quick fix that actually does everything I want and more in the end.