Subtotals in a datagrid

M

Mark

Is there a way to put a subtotal in a datagrid? For example, let's say I
have a datagrid of sales for a given year. No paging. I've used the
ItemDataBound event of the datagrid to add totals at the bottom. I'd like
to add quarterly subtotals in the MIDDLE of the grid on their own rows. The
data is sorted by default by date, so after the last March record, I want to
insert a subtotal.

Which event (ItemDataBound or ItemCreated) is the right one to use?
Suggestions on how to get started? Will I be adding records to the
underlying dataset OR adding new rows to the datagrid?

Thanks!

Mark
 

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
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top