Summing DBGrid's Detail table's curreny value to show subtotals

I want to create a invoice form
with Master Detail table. I cannot
use the TQuery component because I
am not using borland's BDE. How can
I sum the Detail table's value and
show it to the user?
davichoiAsked:
Who is Participating?
 
ZifNabConnect With a Mentor Commented:
Hi davichoi,

I wrote code for this myself once, but lately a free component came on the net :

http://www.torry.ru/vcl/database/dbsumlst.zip
and you can use it (if you want) with this dbgrid

http://www.torry.ru/vcl/database/dbgrideh.zip

Regards, Zif.

ps. I can provide the code too, if you want
0
 
ZifNabCommented:
otherway is to iterate your table... yes slow and not good coding, but I don't see another way.
0
 
davichoiAuthor Commented:
Thanks!!! You helped me alot!
0
All Courses

From novice to tech pro — start learning today.