Solved

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

Posted on 1998-12-03
3
250 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:davichoi
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1349166
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
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349167
otherway is to iterate your table... yes slow and not good coding, but I don't see another way.
0
 

Author Comment

by:davichoi
ID: 1349168
Thanks!!! You helped me alot!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question