Hello,
I am using GridViewSummaryRowItem and i found it very useful so far. However I have problem with adding custom format (color, border) to the total row. In examples there is code snippet that uses cell formatting event to do so:
But my GridView doesn't fire either cellfromatting or rowformatting event for the total row, so I have no way how for example set custom background color. Here's my code to setup the total row:
I am using GridViewSummaryRowItem and i found it very useful so far. However I have problem with adding custom format (color, border) to the total row. In examples there is code snippet that uses cell formatting event to do so:
if (e.CellElement is GridSummaryCellElement) |
{ |
//Set formatting... |
} |
But my GridView doesn't fire either cellfromatting or rowformatting event for the total row, so I have no way how for example set custom background color. Here's my code to setup the total row:
GridViewSummaryRowItem sum = new GridViewSummaryRowItem(); |
sum.Add(new GridViewSummaryItem("CeleJmeno", "Celkem", GridAggregateFunction.None)); |
sum.Add(new GridViewSummaryItem("Preplatek", "{0:C}", GridAggregateFunction.Sum)); |
sum.Add(new GridViewSummaryItem("Zustatek", "{0:C}", GridAggregateFunction.Sum)); |
this.grdHromadnaVyplatnice.MasterGridViewTemplate.SummaryRowsBottom.Add(sum); |