private SummaryCell CreateSubTotalSummaryCell()
{
// Calculation the sub total base on 'Price' and 'Count' in same row.
SummaryCell summaryCell = new SummaryCell();
summaryCell.Name = "SubTotal";
summaryCell.Calculation = new Expression("Price * Count");
summaryCell.Style.Format = "C";
summaryCell.Style.BackColor = Color.Wheat;
return summaryCell;
}
Private Function CreateSubTotalSummaryCell() As SummaryCell
' Calculation the sub total base on 'Price' and 'Count' in same row.
Dim summaryCell As New SummaryCell()
summaryCell.Name = "SubTotal"
summaryCell.Calculation = New Expression("Price * Count")
summaryCell.Style.Format = "C"
summaryCell.Style.BackColor = Color.Wheat
Return summaryCell
End Function