Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid: how to have a footer row dynamically sum data

Thread Tools

DataGrid: how to have a footer row dynamically sum data

Roger Moore
Posts: n/a
I have a DataGrid that needs to dynamically sum data for each column of data
into the footer. The number of rows will differ for each person based on the
projects they are working on at the time - this is a timesheet application.
So I need to assign a JavaScript function for each textbox as it is created,
which should not be a big issue. The question is, how do I have the
JavaScript function know which column to sum. So here is a visual:
txtCol1Row1 txtCol2Row1

txtCol1Row2 txtCol2Row2

txtFooterCol1 txtFooterCol2
How would I dynamically get a JavaScript function assigned to txtCol1Row1
and txtCol1Row2 to enter the sum of those two textboxes when the onblur
event is triggered?

Thank you,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sum up formula field in footer section [crystal report] -_- ASP .Net 0 06-13-2010 12:39 PM
howto: embed a text box in a footer of a GridView's boundfield columnto get data prior to a row insert ASP .Net 0 10-16-2008 03:31 PM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
sum of column in footer Smokey Grindle ASP .Net 4 07-01-2006 11:42 AM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM