I have a dbgrid linked to a Tquery with cached update set to true.
Now what I want is to display a total amount below the grid so that everytime I change the amount field (in my tquery), the total will also be updated.
How can I do this aside from using loops? I don't want to use loops because i'm using a dbgrid and that it would mean that everytime i change the field, the loop executes and the record pointer moves from first to bottom.
Is there any function which I can simply call that would automatically computer for the total.