Click here to Skip to main content
15,878,852 members
Articles / Web Development / ASP.NET

SumColumn: Custom DataGrid Column that automatically shows Sum/Count/Average in DataGrid Footer.

Rate me:
Please Sign up or sign in to vote.
3.75/5 (19 votes)
14 Feb 2006CPOL9 min read 155K   4.4K   49  
A normal requirement in any ASP.Net application is to sum/average up the values in a DataGrid column to the Footer. In this article we will compare the normal methods and later create our own custom DataGrid column "SumColumn", derived from BoundColumn to avoid repetition of the same code.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer
United States United States
Blog at http://www.dotnetpanda.com

Comments and Discussions