?
Solved

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

Posted on 1998-12-03
3
Medium Priority
?
261 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

649 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