WebGrid calculations on Footer

3 replies. Last post: August 31, 2010 2:55 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ben DenisonMember

I have a webgrid that has 4 columns as follows:

Col1 = Value

Col2 = Value

Col3 = Value

Col4 = (Col1+Col3)/(Col1+Col2)

I am using the Aggregate property to get the sum of Col1, Col2, Col3 and display these on the Footer. How do I get Col4 to show the following formula?

(Sum(Col1)+Sum(Col3))/(Sum(Col1)+Sum(Col2))

 

I tried using the Custom Aggregate property but it looks as if I have to sum the other columns on the fly. Not very efficient.

 

 

All times are GMT -5. The time now is 11:25 PM.
Previous Next