Adding numeric datatype columns' content in a datagrid

N

.Net Sports

I'm trying to display the total of a list of numbers in a datagrid. The
numbers (dollaramount in sales) will be part of a dataset according to
the date queried. I will display the total in the footer row. What is
the best way to calculate the total of "dollar amount in sales" and
carry that sum into the footer (dollaramount column), as I've looked at
various resources, but they don't explain this very clear.
Thanks in advance, .NetSports
 
E

Eliyahu Goldin

Use PreRender event. Loop through the data items, calculate the sum, and set
it in the footer.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top