如题,谢谢,是否可以对某列进行自定义汇总?谢谢

解决方案 »

  1.   

    http://www.delphibbs.com/keylife/iblog_show.asp?xid=5161
    DBGRIDEH 组件在Borland开发工具中应用全攻略 【陈文彬】
      

  2.   

    参考
      http://www.delphibbs.com/keylife/iblog_show.asp?xid=5161
      DBGRIDEH 组件在Borland开发工具中应用全攻略 【陈文彬】  DBGRIDEH1.SumList.Active:=true;
      DBGRIDEH1.FooterRowCount:=1;
      DBGridEh2.Columns[0].Footer.ValueType := fvtStaticText;
      DBGridEh2.Columns[0].Footer.Value := '合计:';
      DBGridEh2.Columns[3].Footer.ValueType := fvtsum; //fvtSum
      DBGridEh2.Columns[4].Footer.ValueType := fvtsum;
      TNumericField(query1.FieldByName('平均回复时延(s)')).DisplayFormat:='0';
      DBGridEh2.Columns[5].Footer.ValueType := fvtsum;
      

  3.   

    双击DBGridEh,添加字段。设置字段的foot属性(单击左边的加号)
      

  4.   

    当然要先设置FooterRowCount属性