Click here to Skip to main content
16,008,490 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a stored procedure that retrieves employee information - I don’t want to edit this stored proc because it is globally use with in the website.
Here is now my dilemma, how can I put multiple row records in a column in the grid view. Is Gridview powerful enough to my scenario below or I really need to edit the store proc or my copy of it. Thanks
Record Retrieve by stored proc
Employe_ID  	Purchase ID  	Amount 
1	           0123456	          100
1	           012356  	 560
1	           012446	          560
1	           012126	          560
2	           011122	          100
2	           051122	          200

I want to achieve this in gridview
Employee ID	Purchase ID	  Total Amount
1	           012345                 1780
                    012346         
                    012446 
                    012126         
2	           011122                  3000
                    051122                      
Posted
Updated 17-Aug-11 1:55am
v2

yes it can be done. see http://forums.asp.net/t/1053747.aspx/1[^]

It has to do with Cell[x].RowSpan
 
Share this answer
 
Comments
1234programmer 21-Aug-11 21:16pm    
thanks for the link..but it is not working in the gridview having template field
You can also refer to the following link:

How to merge cells with equal values in a GridView[^]

Regards!
Aman
 
Share this answer
 
Comments
1234programmer 21-Aug-11 21:16pm    
thanks for the link..but it is not working in the gridview having template field

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900