Hello Fabian,
1)Add this CSS in page or application level
.sticky-header
{
position: sticky;
top:50px;
}
(top value is changeable on that bases it will be stick after 50px it will stick likewise,you will also able to give that in % as well) right now i give 50 px because we have header in application so it will stick inside that so for visibility i am giving that its depend on you where you want to stick
2) call that CSS in table in the table header property

3) DEMO Link : DEMO
hope this well helps you,
Thanks and Regards,
Akshay Deshpande