detetction of changed text on the tab change event

hi i have a datagrid that has 3 columns. i want the third column to display the sum of the first two columns. i have used the tabindex changed event now when i go back to the cell thats added in the third column and navigate to the next, the value is a again added... is there any particular way for getting rid of the problem???

Loader.
Up arrow icon