Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Dear I am giving a sample report by grouping .This is from data base.

I want to display similar way in gridview using c# grouped by date.I need

to find sum of each group amount and grand total

7/24/2011
00276 15,000.00
SBO/00189 12,500.00
00189 6,000.00
00189 -15,800.00
00189 6,000.00
23,700.00

7/31/2011
00189 3,500.00
00189 -35,000.00
0189 7,500.00
0189 8,180.00
00189 -105,082.00
-120,902.00

8/7/2011
00189 20,000.00
00189 42,000.00
62,000.00

Grand Total 61,702.80
Posted

1 solution

You can design your item template in your gridview as per your requirement...

or if grid view dose not support your requirement the go for repeater form-views detail-views,data-list etc....

for more detail on this please see this...
http://msdn.microsoft.com/en-us/library/ms228214.aspx[^]
 
Share this answer
 

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