Hey,

I am still not sure that I follow the problem that you are having?!?!

In the code that you posted, when the RowDataBound event is occurring, you are calculating the Total, but when I asked if you were storing this in the value in the database, you said that you were, so in this case, you wouldn't ever need to do this calculation.

So the question that I have is this....

When inserting a row into your database, do you explicitly have a column for the total, or are you always going to calculate that value? If not, when does the calculation of this value occur? What you are describing so far is using javascript to show a display of the total, but how are you persisting this back into the database? Because at the minute, what you are describing won't do that?!?!

Have you thought about using AJAX, so that you don't have to do a full page postback?

Gary