Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Howto: Row Aggregation for ArrayCtrl
Howto: Row Aggregation for ArrayCtrl [message #12856] |
Thu, 22 November 2007 07:58  |
kfeng
Messages: 18 Registered: July 2007 Location: Tokyo, Japan
|
Promising Member |
|
|
Hi,
What is the best approach to provide Row Aggregation functionality in ArrayCtrl?
Suppose I have five rows (ignore ... - didn't know how to embed a space):
A B C
> 1 2 3
...1 5 6
> 2 3 5
...2 3 7
...2 3 2
I want to be able to click on some TreeCtrl-like arrow > and collapse the results into some aggregation after two clicks.
A B C
^ 1 7 9
^ 2 3 14
Rows A=1 has summed columns B and C (Aggregate by A)
Rows A=2, B=3 has summed column C (Aggregate by A,B)
This kind of functionality probably adds a lot of complexity to a class so if someone can suggest an approach (which methods should I focus on?) to how I would best implement this in an extended class, I would greatly appreciate it - or if someone has an example, that would even be better!
Thank you.
Regards,
Ken
[Updated on: Thu, 22 November 2007 08:05] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 16:40:56 CEST 2025
Total time taken to generate the page: 0.00685 seconds
|