Thanks
Hi,
I think I misunderstood your question.
In the screen shot you have here, you are grouping the grid by two columns.It sounds like what you want is to have a different summary at each level of grouping. In other words, you want a summary at the first level of grouping and a different summary at the second level of grouping.
There's no way to do that. The summaries are defined on the band, so they apply to everything in that band, regardless of grouping.
I tried your solution and I got this:
It has one different summary for each group
But, I'm trying to have a different summary operation for each nested groups (with the same summary object).
In my previus example I have a first group by Direccion. In that level the summary must shows SUM(PRODUCCION_MES). But if i go down, in the second group (Delegación) it must show a diferent operation (MAX(PRODUCCION_MES))
Is it possible to hide one of the summary according the level?
If you want one summary or the other, then you could handle this in code by trapping the AfterSortChange event. This is the event that fires when grouping or sorting changes.
So you could check the SortedColumns collection and examine the columns, see which columns(s) have IsGroupBy set to true and add whatever summaries you want.