Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<b></b>i have data in grid view in this format

name status item1 item1
abc y 5 4
abc y 3 2
abc y 8 2
xyz n 4 4
xyz n 4 2
xyz n 4 2

------------------------------------------
and i want data in gridview in this format
------------------------------------------
abc y 5 4
abc y 3 2
abc y 8 2

Total y 16 8

xyz n 4 4
xyz n 4 2
xyz n 4 2

Total y 12 8
Posted

1 solution

Any potential solution is going to be highly dependant on the source of your data. For example, if you're pulling the data from a database, that could be a better place to aggregate, if you're using an object collection it may well be better handled there.

There are plenty of rusults if you google gridview grouping[^]
 
Share this answer
 
Comments
fjdiewornncalwe 8-Jul-11 10:01am    
That's the best way to find answers. Well done.

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