Is there a way to have the label of the summary in multi language such as having the possibility to have "Total" or blanc instead of "SUM"?
This sample shows how to change/override the label of summary (in this code label can be changed just in case of SummaryKind.Sum):
public class ColumnWithCustomSummaryLabel : NumberColumn
{
public ColumnWithCustomSummaryLabel(string name) : base(name) { }
private string sumKindLabel = "Total";
//here we can change the label for SUM
public string SumKindLabel
{
get { return sumKindLabel; }
set
{
sumKindLabel = value;
}
}
protected override string FormatSummary(SummaryKind kind, object summaryValue)
{
if (kind == SummaryKind.Sum)
{
string text = this.SumKindLabel + "=";
text += (summaryValue != null ? summaryValue.ToString() : "?");
return text;
}
return base.FormatSummary(kind, summaryValue);
}
}