How can i add a footer with totals in dbgrid

Hello

I need a footer in dbgrid where I want to pace total for a column.

Thanks !
radugheorghiesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

silemoneCommented:
http://aspalliance.com/494

read this link and it should help...also I will be available to help...
0
silemoneCommented:
oops..that was vb...
0
silemoneCommented:
just noticed you're using adelphi...
0
Geert GOracle dbaCommented:
there are some ways of doing this:

use a component like TMS grid or DevExpress grid which have this option built in
http://www.tmssoftware.com/site/gridpack.asp
http://www.devexpress.com

or
depending on your query and probably database
add a query with union with totalized fields
if you query is :
select a,b,c from table

then it would be
select '1' sorting, a,b,c from table
union
select '2' sorting, a, b, sum(c) c from table
group by a,b
order by 1

to keep the row on the bottom the sorting is added

or add a panel and a caption below the grid with the totalized field


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
radugheorghiesAuthor Commented:
Thanks for your information. I understand that is no other way to do this. I will choose the pannel solution.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.