We help IT Professionals succeed at work.

How to group multiple rows in GridView

rsstech
rsstech asked
on
4,271 Views
Last Modified: 2011-10-03
Hi, I have a GridView that will have about 3 rows for each customer number. I want to group those 3 rows into 1 row where the customer number will span all 3 rows, then the other details will show up on each of the 3 rows, and the final column should have a link button that spans the 3 rows.  I also want to use an AlternatingRowStyle for each group of rows (like the 1st customer with its 3 detail rows should be white, then the next customer with its 3 detail rows should be blue, and so on).  I would like the rows to look like the example below with the section for Cust No 1 colored white, and the section for Cust No 2 colored blue, etc.  Is there a way to do this?  Thanks for your help!

 Cust No 1  Relationship Name 1   Amount  LinkButton
                  Relationship Name 2   Amount
                  Relationship Name 3   Amount
Cust No 2   Relationship Name 1   Amount  LinkButton
                  Relationship Name 2   Amount
                  Relationship Name 3   Amount

Comment
Watch Question

CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
thanks for the tip - solved a similar problem that i had.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.