Hi good night.
I have a problem. I need to re-calculate the values of the “Accumulated amount” column every time I make a change in any column of the grid (specially the colum TotalAmount). re-calculated de values and show in the grid.
The business rule for the “Accumulated total amount” column is as follows:sum current row + previous row. (in the first row the previous row is zero).
I used this code in the row_updated event but it doesn't work as I expect. (This code is in the Row_Updated Event
//In this code for each interaction 1 is added so if I have a grid with 4 rows in AccumulatedAmount //it should look like: 1,2,3,4 but it doesn't work
int cont = 0;
foreach (CEEstimateAddOn soLine in this.viewCEEstimateAddOn.Select())
soLine.AccumulatedAmount = cont;
with the code above only the “edited/active” row show the result.
and not in all rows as I need
Could you please help me.
Best answer by Naveen BView original