Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to have Summary row in the Datagrid control. For example I want to display the Total of some columnbelow in the Datagrid control like a summary...
Posted
Comments
MAKReddy 16-May-12 8:30am    
Hi U want total number of records in ur datagrid or u want sum of ur datagrid records?
farhan.mycom 16-May-12 8:46am    
Yeah dude...

1 solution

I think this would be helpful to you:

http://msdn.microsoft.com/en-us/library/bb310552.aspx[^]
 
Share this answer
 
Comments
Sandeep Mewara 16-May-12 8:19am    
Perfect link! 5!

Update: I will not downvote, but WPF related was needed.
farhan.mycom 16-May-12 8:45am    
Hey dude.. I'm using WPF... Asp .Net grid is different from WPF grid....
hunain.esh 16-May-12 8:51am    
You didn't mentioned it before dude:) I have little familiarity with WPF
hunain.esh 16-May-12 9:02am    
Another possibility would be to have a second DataGrid below your first grid, a summary DataGrid if you will.

You could perform data bindings to set the column sizings (if they are dynamic) and it would align nicely if placed in a grid layout in XAML.

Hope this gives you some ideas.

Visit this link dude

http://www.codeproject.com/Articles/30905/WPF-DataGrid-Practical-Examples

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