Reputation: 41
I have a ultragrid in janus with this code
UltraGridColumn col = new UltraGridColumn();
ultraGrid1.TotalRow = Janus.Windows.GridEX.InheritableBoolean.True;
col.Caption = "column1";
col.DataMember = ISOCntrTable.IsoCode.ColumnName;
col.Key = "column1";
col.AggregateFunction = Janus.Windows.GridEX.AggregateFunction.Sum;
col.FormatString = "c";
col.TotalFormatMode = Janus.Windows.GridEX.FormatMode.UseStringFormat;
col.TotalFormatString = "SUM={0:c}";
ultraGrid1.Columns.Add(col);
but, no any things show in TotalRow! how can i show summary in this row? please help me!
Upvotes: 0
Views: 3355
Reputation: 36
you can add this code after when you add your column to grid :
grd.TotalRow = Janus.Windows.GridEX.InheritableBoolean.True;
grd.RootTable.Columns[10].AggregateFunction = Janus.Windows.GridEX.AggregateFunction.Sum;
Upvotes: 2