Hm, you can probably do this with styling. The html of the datagrid looks like this:
The <td>3</td> is a summerization attribute here in a row called tfoot.
So using selector $(‘.mx-grid-content table tfoot tr:nth-child(2)’) or something like that, should get it. Then do some css magic to place it on top.