Is it possible to have multiple summary rows in a single band. I have data like below and need to show Summaries as Subtotal for each unique ColA value. Is it possible to show as below without manupulating data in underlying datasource.
Thank you
ColA ColB Col C
1 a 2 1 b 51 c 3
SubTotal 10
2 x 12 z 2
SubTotal 3
3 i 43 j 103 k 43 i 5 Subtotal 23
Mike,
I think same code what I have for the custom summary works just fine with a new grid. For some reson the old grid is having troubles with it.
For now , I am good.
Thanks a lot , Venkat.
Thank you very much for taking time to look into this.
You are right in saying summary formula line is commented but in the actual code its not.
If I follow you correct , scrolling down to the bottm should calulate the summaries but I dont see the correct summaries. SO I was running the same code in debugger , then I see that the custom class New method getting called but dont any other methods getting called and eventually summaries are not currect.
I am not sure why those beginSummary and other methods are not gettting called when step though debugger. Any clue ?
In the other post that I had posted the complete code.
I really appreciate your help on this as I am in crunch state of the project.
Thanks, Venkat.
Hi Venkat,
Well, the line of code you have here which adds the summary is commented out. :)
Assuming that's just a typo here in this forum post and that this line is not commented out in your actual code, then my next guess would be that the summary is not yet visible on the screen. The summaries don't get calculated until they are needed. So if your summary is at the bottom of the rows collection (which is the default), the calculation will not occur until you scroll down to the bottom of the rows and bring the summary into view.
Hi all ,
I followed this thread and wrote my customSummary class and used the Custom summaryType.Tried using the same but my methods inside the custom class didn't get fired. Ami doing anything wrong.
InterCompGrid3.DisplayLayout.Bands(0).Columns("CGDTH").AllowRowSummaries = AllowRowSummaries.True 'InterCompGrid3.DisplayLayout.Bands(0).Summaries.Add("summaryCGDTH", SummaryType.Custom, New InterCompCustomSummary("CGDTH"), InterCompGrid3.DisplayLayout.Bands(0).Columns("CGDTH"), SummaryPosition.UseSummaryPositionColumn, Nothing)
Can anybody give a qucik pointer.
Thanks a Lot, Venkat.
Sorry Mike, I posted this in wrong forum.
Thanks for your support.