Author Topic: wxGrid expanding  (Read 1524 times)

micronpn

  • Guest
wxGrid expanding
« on: February 25, 2015, 05:00:29 pm »
I would like to have a wxGrid that expands itself to occupy all the space of the sizer in which is located. If it expands in vertical direction could be ok if it expands its border, not necessarily the number of rows. In the horizontal direction could be preferred but at least I would like it expands a little bit to don't add both the vertical and horizontal bars only because there are more rows as possible for its size. If is possible to do that with a normal wxGrid is there any example or documentaton about?

Offline Grouch

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: wxGrid expanding
« Reply #1 on: August 12, 2016, 06:40:59 pm »
Have a look at Tutorial 10 in the wxSmith tutorials. The grid there does not automatically expand, but the user can expand it with the mouse or maximize button.

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: wxGrid expanding
« Reply #2 on: August 20, 2016, 01:02:40 am »
Couldn't you just use Fit()? wxGrid imports it from wxWindow if I recall.