Click here to Skip to main content
15,171,303 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a rich text box that displays items.These items have column names.The column names are loaded when the form loads.They hold values as rows.These rows are appended at a click of a button (when add button is clicked).

At the bottom,let me say i have another field(total amount) in the rtb which displays total value of a Amount column.This is also displayed when calculate button is clicked.

If someone wants to add another row to be calculated it would create the format displayed.so i wanted to clear the total amount field when another item gets added.Is there a way to do that.
Posted

1 solution

Recalculate the sum total every time a new record is added to the rtb.
This way you have the latest total and you don't have to remove the total.
   
Comments
Nebilo 7-Nov-13 6:27am
   
It still does that,no problemm with the calculation.When you click the calculate button,it displays the appended items,that is "Total Amount" along with the result.Don't forget that they are appended.So when a user wants to add another item to be calculated."Total Amount" and the latest result again are displayed.
That's what i want to solve

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900