0

我在 janus 中有一个带有此代码的超网格

        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);

但是,TotalRow 中没有任何东西显示!我如何在这一行显示摘要?请帮我!

4

1 回答 1

1

您可以在将列添加到网格后添加此代码:

grd.TotalRow = Janus.Windows.GridEX.InheritableBoolean.True;
grd.RootTable.Columns[10].AggregateFunction = Janus.Windows.GridEX.AggregateFunction.Sum;
于 2014-06-15T04:11:32.747 回答