X
xhj12077021
Unregistered / Unconfirmed
GUEST, unregistred user!
sql: select amount, outamount,bcamount from abc
cdssub:1,AutoCalcFields,为true
2.双击cdsSub ,增加amount, outamount,bcamount类型为data ,leavamount为caculated
OnCalcFields事件:
DBGrid.DataSource.DataSet.FieldValues['leavamount']:=DBGrid.DataSource.DataSet.FieldValues['amount']- DBGrid.DataSource.DataSet.FieldValues['outamount'];
没有触发OnCalcFields事件
这是为什么?
cdssub:1,AutoCalcFields,为true
2.双击cdsSub ,增加amount, outamount,bcamount类型为data ,leavamount为caculated
OnCalcFields事件:
DBGrid.DataSource.DataSet.FieldValues['leavamount']:=DBGrid.DataSource.DataSet.FieldValues['amount']- DBGrid.DataSource.DataSet.FieldValues['outamount'];
没有触发OnCalcFields事件
这是为什么?