Showing monthly info in data control

C

cara_little

Hello,
I'm trying to show monthly summary info in some type of data control
like so:

Jan Feb Mar Jun
Apples 10 15 20 25
Oranges 5 3 6 10
Bananas 8 7 4 9

so that it shows the number of apples bought in Jan, etc.

When I pull the data from the database, I'm using a group by so that
each record has the total apples, total oranges and total bananas for
the specific month. So the data record looks like so:
NumApples NumOranges NumBananas Month
10 5 8 1

What's the easiest way to get that data to display correctly with the
default column on the left, the header columns and the data showing in
columns per month - I've been playing with the datagrid and datalist
and can't seem to get it to work - but then it's been a long day so
hopefully I'm missing something easy.
 

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

Top