can I split single grid cell to have multiple values?

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.
murali
In need of some credit
In need of some credit
Posts: 2
Joined: Fri May 18, 2018 5:20 pm

can I split single grid cell to have multiple values?

Postby murali » Sun Jun 17, 2018 3:54 am

Hi,
I would like to have 2 values in single grid cell. The requirement is I have 8 column and for each column I want to have 2 possible values. So can I split a grid cell so that I can have 2 values per cell?. Any ways I can achieve this?

Nunki
I live to help wx-kind
I live to help wx-kind
Posts: 164
Joined: Fri Sep 14, 2012 8:26 am
Location: Kontich, Belgium
Contact:

Re: can I split single grid cell to have multiple values?

Postby Nunki » Sun Jun 17, 2018 9:50 pm

Hi Murali,

I suppose we're talking about wxGrid ? Then I think you cannot set the value of a cell to two values. It's not logical. You can either use two columns and if wxGrid had the ability to merge cells, you could have one header cell above these two columns. Or make one value out of the two with a divider like 'xxxx / yyyyyyy' or '123.55 | 44.12' or any other format that suits you.

Hope this helps you on your way.
Regards,
Nunki


Return to “C++ Development”

Who is online

Users browsing this forum: No registered users and 7 guests