Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Levels of UltraWinGrid Groups Summary and a calculate pondered average with custom summary.
posted

Infragistics Hello people, how are you?

Right now what I need is to know what level of a group summary I'm using a class with a custom summary, this because I need to use different columns to calculate a pondered average using the group level.

Example to calculate a calculate a pondered average:

  • Level 0 use field_ttl_0
  • Level 1 use field_ttl_1
  • Level 2 use field_ttl_2


Check the attached image.

Thank you very much in advance, Juan Quintero - VE

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    Are you using an ICustomSummaryCalculator or an External summary?

    Either way, it should be pretty simple to get the depth.

    All of the methods of the ICustomSummaryCalculator give you a rows collection (or a row). From the row or rows, you can walk up the parent chain and examine the parent GroupByRow using the ParentRow property.

    If you are using an External summary, then the ExternalSummaryValueRequested event gives you the SummaryValue, which has a ParentRows property, and once again, you can walk up the ParentRow chain to determine the depth.

Children