Link to home
Start Free TrialLog in
Avatar of rsstech
rsstech

asked on

How to group multiple rows in GridView

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

ASKER CERTIFIED SOLUTION
Avatar of G0ggy
G0ggy
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jasonlassen
jasonlassen

thanks for the tip - solved a similar problem that i had.