I have set display summary in groupbyrows by using the SummaryDisplayArea property as shown below.
grd.DisplayLayout.Override.SummaryDisplayArea = SummaryDisplayAreas.TopFixed;
grd.DisplayLayout.Override.SummaryDisplayArea |=SummaryDisplayAreas.GroupByRowsFooter;
grd.DisplayLayout.Override.SummaryDisplayArea |= SummaryDisplayAreas.InGroupByRows;
grd.DisplayLayout.Override.GroupBySummaryDisplayStyle =GroupBySummaryDisplayStyle.SummaryCells;
grd.DisplayLayout.Override.SummaryFooterAppearance.BackColor = SystemColors.Info;
grd.DisplayLayout.Override.SummaryValueAppearance.BackColor = SystemColors.Window;
grd.DisplayLayout.Override.SummaryValueAppearance.FontData.Bold =DefaultableBoolean.True;
grd.DisplayLayout.Override.GroupBySummaryValueAppearance.BackColor =SystemColors.Window;
grd.DisplayLayout.Override.GroupBySummaryValueAppearance.TextHAlign = HAlign.Right;
grd.DisplayLayout.Override.SummaryValueAppearance.TextHAlign = HAlign.Right;
grd.DisplayLayout.Override.SummaryFooterCaptionVisible = DefaultableBoolean.False;
Everything works fine except the last column. I am displaying a table that is wider than the grid display window. When I scroll all the way to the right, as you can see below, the columns shift, but the summary cell/text of the last column remains at the same position (half way hidden behind the grid). Everything does show correctly if I don't have to scroll (for example if I adjust resolution). This is a client app so I cannot have them adjust their resolution. Any solutions would be great.
Hi,
I'm afraid I don't understand the issue. What's the problem, exactly? There's nothing obvious wrong in this screen shot as far as I can see. And I do not understand what you mean by "the summary cell/text of the last column remains at the same position (half way hidden behind the grid)"
Also, look at 2018, the $4 is getting truncated off, and the cells above it are blank. The values in the cells are the same as the previous year.
Mike,
There are values in the cells in that last column 2018, however when I initially open the grid, that last column is not in view, so I have to scroll all the way to the right, when I do this, the values are not visible for that last column, something to do with the group by summary and the alignment of the cell values.
I aligned the cell values to the left and they become visible (so it is a temporary fix), but as you know numbers typically are right aligned. Look at the images again, you will see blank cells, when in fact they are not really.