Y donde tenes ese codigo?
Asi, a primera vista deberia estar en el evento itemchanged, y creo que en ese caso no hace falta el If Rowcount()...
En teoria si en el evento ITEMCHANGED de tu dw tenes algo asi:
LONG ll_serie, ll_corte, ll_total
ll_serie = LONG(this.GetitemNumber(this.Getrow(),3))
ll_corte_boleto = LONG(this.GetitemNumber(this.Getrow(),4))
ll_total = ll_serie + ll_corte_boleto
This.setitem(row,5,ll_total)
No lo probé pero debería andar.
Otra cosa, este evento se da cada vez que modificas cualquier campo, asi que "mas optimo" podria ser agregarle unas lineas que detectan de que campo se trata y hacer algo en consecuencia:
LONG ll_serie, ll_corte, ll_total
string ls_object
ls_object=string(dwo.name)
If ls_object="valor" or ls_object="subtotal" then
ll_serie = LONG(this.GetitemNumber(this.Getrow(),3))
ll_corte_boleto = LONG(this.GetitemNumber(this.Getrow(),4))
ll_total = ll_serie + ll_corte_boleto
This.setitem(row,5,ll_total)
End If
Como te dije, no lo probé, pero fijate si te sirve.