group data in gridview

J

John

On my gridview I need to group the sales by year.
2000 - 2001 - 2002, etc is there a way to do this with using the gridview?

example:
sales for: 2000
data
blank row
sales for: 2001
data
blank row

now the data that is being pulled back to populate the grid is the year
 
J

John

I'm calling a stored procedure. I've done something similiar to this using
the datagrid in asp.net 1.1 but wasn't sure if that sameway would work or
not on the gridview in 2.0
 
J

John

thanks, I looked at the page briefly and by the image thats what i need

thanks
Jan Hyde said:
On my gridview I need to group the sales by year.
2000 - 2001 - 2002, etc is there a way to do this with using the gridview?

example:
sales for: 2000
data
blank row
sales for: 2001
data
blank row

now the data that is being pulled back to populate the grid is the year

I haven't looked at how it works but I came across this
which may be of interest

http://aspadvice.com/blogs/joteke/archive/2006/02/11/15130.aspx

Jan Hyde (VB MVP)

--
He that lives in hope danceth without music.

George Herbert
[Outlandish Proverbs, 1006]
 

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,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top