Not a template grid, but we use the following class to set a sticky header on a datagrid with a fixed height, so we add the “datagrid-sticky-header” to the grid as class :
for copy/paste -->
.datagrid-sticky-header .mx-name-head-row {
th {
position: -webkit-sticky !important;
position: sticky !important;
top:0 !important;
background-color: $brand-default;
}}
.datagrid-sticky-header .mx-grid-content {
overflow: auto;
height: 500px !important
}