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:
Check the attached image.
Thank you very much in advance, Juan Quintero - VE
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.
Hi Mike, thanks for the quick response. I'm using ICustomSummaryCalculator. I'll take a look at the code and notify you the result of the tests.