The text of this article is not in this database — only its details are. Read it on the old site: SumColumn: Custom DataGrid Column that automatically shows Sum/Count/Average in DataGrid Footer.
5 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
StevePosted May 26, 2009, 10:59 AM
I did something mildly similar before. Rather than write ASP.Net code to summarize data, I used T-SQL and temporary tables. One grid that represents the detail of the data, a second one that summarizes, in this case money, values such as Month-To-Date and Year-To-Date. Both are temporary tables returned by the stored procedure but who's life-span is the execution of the procedure. It's quick and clean, and all the logic and work is back-ended to the server. The ASP.Net code is just a few lines, amounting to assigning the result set from the procedure to the grid.
shafaqat aliPosted May 21, 2009, 12:53 AM
System.Web.UI.WebControls.DataControlFieldCollection must have items of type 'System.Web.UI.WebControls.DataControlField'. 'Custom:CustomColumn' is of type 'Custom.CustomColumn'. "Custom"=My ClassLibraryName "CustomClass"= my class name
Jorge SalinasPosted May 20, 2009, 3:46 PM
Very useful, i'm using this right away.
rama kishoreeditedPosted Feb 21, 2006, 5:39 AMEdited Apr 18, 2006, 10:49 AM
It is very useful application. while way of telling the application is also very good. my email is [email protected] Regards, ramakishore. [edit]