Subtotal in Xtreme Report? |
Post Reply |
Author | |
exycomm
Newbie Joined: 27 January 2006 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 27 January 2006 at 9:08am |
Hi How can make subtotals with this control? thanks! |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
With the standard sample application, you can calculate and show subtotals for (for example) Price column with the following piece of code. Please note that you should add Price column onto "Group By" field to enable grouping.
-- WBR, Serge |
|
Warren
Groupie Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
|
Serge,
I understand the posted code, but where do you suggest is the most appropriate place to add this an application? Should I derive from the report control, and add it to the end of an overrriden virtual void Populate() |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi Warren,
Of course it depends on your needs, but if you need subtotals to be always properly calculated, it would be a best solution... For example, after drag-n-drop to/from group area it would be the only way to have group row captions automatically updated. -- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |