Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxGrid and collapse/expand/group

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxGrid and collapse/expand/group
#4967
Posted by: 2004-08-11 19:43:24
Hi,

I'm wondering if it is possible to use grouping-features with wxGrid.

For example, if I add the following lines to a wxGrid.

  Column 1  |  Column 2  |  Column 3  | Column 4
--------------------------------------------------
Name 1      |         10 |        100 |     true
Name 2      |         20 |        200 |     false
Name 3      |         30 |        300 |     true
Name 2      |         50 |        400 |     true

Now, what I'd like to be able to do is to "activate" grouping for the first column. And summing for the second and third one. So the table would look like this:

  Column 1  |  Column 2  |  Column 3  | Column 4
--------------------------------------------------
Name 1      |         10 |        100 |    
Name 2      |         70 |        600 |    
Name 3      |         30 |        300 |    

The Row with "Name 2" in "Column 1" should now be expandable and collapsable, to show the user the details.

Is there anything like that?

Cheers,
Florian.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0