G
Guest
I've run into this problem twice now and haven't quite figured out how to
approach it properly. I'm using ASP.NET 1.1 and C# to develop a reporting
package. Some of these reports are showing a daily total amount. There has
been a request to add a running total next to the daily amount. For example:
1/1/2006 $41 $41
1/2/2006 $23 $64
1/3/2006 $57 $121
Since I know the exact column I'm using to do the calculation, I assume I
just need to loop thru the rows using a foreach row loop. But I'm having
trouble figuring out how to do the calculation and then adding the new column
with the updated value. Every example I've seen with a foreach loop with a
calculation uses the Expression property which I don't believe I can use.
Any help would be appreciated.
approach it properly. I'm using ASP.NET 1.1 and C# to develop a reporting
package. Some of these reports are showing a daily total amount. There has
been a request to add a running total next to the daily amount. For example:
1/1/2006 $41 $41
1/2/2006 $23 $64
1/3/2006 $57 $121
Since I know the exact column I'm using to do the calculation, I assume I
just need to loop thru the rows using a foreach row loop. But I'm having
trouble figuring out how to do the calculation and then adding the new column
with the updated value. Every example I've seen with a foreach loop with a
calculation uses the Expression property which I don't believe I can use.
Any help would be appreciated.