Try grid.GetBestSize()
···
david.g.morgenthaler@comcast.net wrote:
My question concerns how to determine the size a wxGrid should be to display without scrollbars.
I have a wxFrame, which has a wxBoxSizer, which has a wxGrid. The contents of the wxGrid are not known until runtime -- the number of rows and columns are determined from other program data. I can successfully add and size all the rows and columns. But I can't figure out how to make the wxFrame big enough to display the wxGird without scrollbars. (There will never be so many rows/columns that the wxFrame will not fit on a screen.) Is there a way to ask a wxGrid for this size?
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!