Lets assume your grid direction is columns.
Within the grid question, click on the Rows tab.
You will see a tick box option "Include a Totals Column". Tick this option to have your totals box appear for each column.
If you change the grid direction to rows, the same rules mentioned above apply except change the rows/columns around.