Dim tableSummaryRow1 As New GridTableSummaryRow()
tableSummaryRow1.Name = "TableSummary"
tableSummaryRow1.ShowSummaryInRow = True
tableSummaryRow1.Title = " Total Product Count: {ProductName}"
tableSummaryRow1.Position = VerticalPosition.Bottom
Dim summaryColumn1 As New GridSummaryColumn()
summaryColumn1.Name = "TotalProduct"
summaryColumn1.SummaryType = SummaryType.DoubleAggregate
summaryColumn1.Format = "{Count}"
summaryColumn1.MappingName = "ProductName"
tableSummaryRow1.SummaryColumns.Add(summaryColumn1)
Me.sfDataGrid1.TableSummaryRows.Add(tableSummaryRow1)The only change in my code is the column name. Replaced ProductName with my column and the result belowHow can I solve this? |
Dim tableSummaryRow1 As New GridTableSummaryRow()
tableSummaryRow1.Name = "TableSummary"
tableSummaryRow1.ShowSummaryInRow = True
tableSummaryRow1.Title = " Total Product Count: {TotalProduct}"
tableSummaryRow1.Position = VerticalPosition.Bottom
Dim summaryColumn1 As New GridSummaryColumn()
summaryColumn1.Name = "TotalProduct"
summaryColumn1.SummaryType = SummaryType.DoubleAggregate
summaryColumn1.Format = "{Count}"
summaryColumn1.MappingName = "ProductName"
tableSummaryRow1.SummaryColumns.Add(summaryColumn1)
Me.sfDataGrid.TableSummaryRows.Add(tableSummaryRow1) |
summaryColumn1.MappingName = "Κωδ.Πελάτη" 'if I want totals for the SUPid column that has a greek alias for the grid|
this.sfDataGrid.Columns.Add(new GridTextColumn()
{
MappingName = "CustomerName",
HeaderText = "Κωδ.Πελάτη"
}); |