I don't believe that's possible for a template grid. I think you should explore the option to place the listview in a listview and style the parent listview like the template grid.
Sjors is right, you can use list view and style them to your liking.
I ran into the same inconvenience a few times now so I would like to suggest to give these Planned ideas in our idea section a vote ;)
There are other ideas like those that you might like as well
Good old memories. :D In Mendix 5 and 6 there was no list view. We hacked around with a “form loader” widget.
Which is no longer in the app store, has some limitation and also not the recommended low code way. If you are stuck the grid and are desperate you try revive the widget for Mendix 8