问题描述
在我的code;我计算了3 GroupSummary
值 ASPxGridview
;
In my code; i calculate 3 GroupSummary
value with ASPxGridview
;
<dx:ASPxSummaryItem FieldName="RISK_EUR" SummaryType="SUM" ShowInGroupFooterColumn="RISK_EUR" DisplayFormat="n0" />
<dx:ASPxSummaryItem FieldName="IPOTEK" SummaryType="AVERAGE" ShowInGroupFooterColumn="IPOTEK" DisplayFormat="n0" />
<dx:ASPxSummaryItem FieldName="MV_BERND" SummaryType="SUM" ShowInGroupFooterColumn="MV_BERND" DisplayFormat="n0" />
当我分组,我想计算的另一列的GroupSummary价值等等;
When i grouping, i want calculate another column's GroupSummary value like;
GroupSummary[RISK_EUR] - GroupSummary[IPOTEK] - GroupSummary[MV_BERND]
我怎样才能做到这一点?
How can i do that?
最好的问候,
Soner
注意:我不能计算这个值计算,每行,然后总他们,因为这3 GroupSummary的SummaryType不一样的。 (一个是平均值)
NOTE: I can't calculate this value calculating for every row and then total them, because this 3 GroupSummary's SummaryType isn't same. (One is AVERAGE)
推荐答案
这可以通过使用的。当你调整它,网格将提高<一href="http://documentation.devex$p$pss.com/#AspNet/DevEx$p$pssWebASPxGridViewASPxGridView_CustomSummaryCalculatetopic"相对=nofollow> CustomSummaryCalculate 事件,每一个组中的每个记录。为了团体区分,事件参数类提供了SummaryProcess财产。所以,你应该利用此事件处理手动计算GroupSummary [RISK_EUR],GroupSummary [IPOTEK]和GroupSummary [MV_BERND]值。使用它们,你就可以计算得到的汇总值。
This can be implemented by using custom summary. When you adjust it, the grid will raise the CustomSummaryCalculate event for every record in every group. To distinguish between groups, the event arguments class provides the SummaryProcess property. So, you should use this event handler to manually calculate GroupSummary[RISK_EUR], GroupSummary[IPOTEK] and GroupSummary[MV_BERND] values. Using them, you will be able to calculate the resulting summary value.
这篇关于计算GroupSummary值Programmaticly在DevEx preSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!