or
GridViewSummaryRowItem totals = new GridViewSummaryRowItem();
totals.Add(
new GridViewSummaryItem("Total", "{0}", GridAggregateFunction.Sum));
this.radGridView1.MasterGridViewTemplate.SummaryRowsBottom.Add(totals);
Am i missing something? Are there more properties i need to be setting on the grid or column or master view for the summary row to show ?
Thanks
Anisha
| private void gvPremios_CellFormatting(object sender, CellFormattingEventArgs e) |
| { |
| if (e.CellElement.ColumnInfo is GridViewDataColumn && !(e.CellElement.RowElement is GridTableHeaderRowElement)) |
| { |
| GridViewDataColumn column = (GridViewDataColumn)e.CellElement.ColumnInfo; |
| if (column.DataField == "MyColumn") |
| { |
| if (e.CellElement.Children.Count > 0) |
| return; |
| RadLabelElement element = new RadLabelElement(); |
| element.Text = "<html>This is a test..." |
| e.CellElement.Children.Add(element); |
| } |
| } |