Footer totals

I have a grid where I want the cell totals horizontally & vertically.
Vertical is automatic using #stat_total & I have created a method of summing the cells horizontally after a cell is edited.
The problem is that the rightmost bottom cell does not get updated.
The #stat_total never seems to be executed after the initial grid load.
Does anyone know if this is a bug or is there a way of updating the footer like
grid.cells(rows, columns-1).setValue(total);

You may try to force the calculation using the following command:

Brilliant worked a charm thanks