the property AutoCalcFields use in the Calcfieds event but use in the Aggregsted field ,
you can use the actvie property in code  

解决方案 »

  1.   

    你是在ClientDataSet中new了一个Aggregate字段吧,如果是就:
    1.ClientDataSet的AggregatesActive设为True;
    2.new的那个字段的Active改为True,并写它的Expression表达式,即可也
      

  2.   

    我的问题还是未能解决,
    AutoCalcFields:=true;
    AggregatesActive:=true;
    所有的Active:=true;
      

  3.   

    记住:
    1.ClientDataSet的AggregatesActive设为True;
    2.new的那个字段的Active改为True,并写它的Expression表达式,即可也(必须在字段编辑器中选中聚合字段)。
      

  4.   

    ClientDataSet的AggregatesActive设为True
    并用Expression表达式,sum(gz)。
    还是不行,
    还是不行,我也开始烦了。