How can i add a footer with totals in dbgrid


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

Thanks !
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.


read this link and it should help...also I will be available to help...
oops..that was vb...
just noticed you're using adelphi...
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

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
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

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.
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

From novice to tech pro — start learning today.