Hi – As I mentioned – I added in your method and everything seemed to work fine. However, I do have one lingering issue… I have not been able to reproduce it yet with a sample. The sample I created works fine as does your sample – but in my own app I have 1 scenario where this does not work as expected:
I allow the user to toggle into grouping mode via a button on a sheet that is not in group mode. When they are in that mode and they drag 1,2 3,4 columns into the group bar, the total rows for the group display fine. Works fine.
I allow users to save a 'view definition’ in a table and I read that and build the view accordingly. If the user specifies a single column to group by, I automatically put the spread into group mode and group by that single column. Counts are displayed for that grouped column. Works fine.
But… If the user saved multiple group columns in their view definition and the I try to build the view automatically, all but the last grouped column do *not* display totals. I know the reason but not why it is happening. In this one scenario, this line:
if (!(g.Rows[0] is FarPoint.Web.Spread.Model.Group))
returns false. In other words, the g has a single Row and it is of type Group, not an integer. I am trying to reproduce this but in the meantime, I would like to understand why this may be happening if you have any ideas. Can you think of a scenario where the 1st Row in the g.Rows array would be of type Group instead of an integer like it is in most cases? I can’t figure out why this is happening and any insight is appreciated.
Thanks.