MS Excel table behavior using wxGrid or wxGridBagSizer Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ddv
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Dec 18, 2006 4:23 pm

MS Excel table behavior using wxGrid or wxGridBagSizer

Post by ddv » Mon Jan 08, 2007 3:41 pm

Hi!

I need a control like wxGrid but with the possibility to merge some cells (this can be done with wxGridBagSizer but not in wxGrid) AND resize individual columns and rows (these can be done in wxGrid but not with wxGridBagSizer).

With wxGridBagSizer, I cannot understand how to resize the cells in a control such a sizer.

Any idea ?
Thanks.

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Tue Jan 09, 2007 8:14 am

I believe wxGrid can do that as well. Check out the wxGrid sample. Emulating such a thing with sizers and individual cells is definately not recommended. If wxGrid is not satisfactory there is also wxSheet I think, a revamped version of wxGrid.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

ddv
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Dec 18, 2006 4:23 pm

Post by ddv » Tue Jan 09, 2007 9:12 am

Thanks for the answer, I didn't know this extra component :wink:

ddv
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Dec 18, 2006 4:23 pm

Post by ddv » Tue Jan 09, 2007 10:46 am

Ok, I have tested and this fits perfectly to my needs, thanks again :wink:

Post Reply