Hello,
Issue when adding columns and aggregate functions programmatically. Version 2019.2
The Group Footer aggregate function works as expected, but when I try to add formatting, it fails.
e.g. if the sum total is 100, the value in the footer appears as "N"
I've tried different format strings - always the same result - what am I doing wrong ?
var c = new GridViewDataColumn
{
Header = columnField.ColumnHeader,
MinWidth = 100,
DataMemberBinding = new Binding(columnField.ColumnName) { StringFormat = columnField.FormatString },
UniqueName = columnField.ColumnName
};
var sumFunction = new SumFunction() { SourceFieldType = Type.GetType("System.Decimal"), ResultFormatString="N" };
c.AggregateFunctions.Add(sumFunction);