sticky header for grid

I want to achieve the following behavoir: a grid is part of a vertical layout , together with other components. If one scroll up, the header of this grid should stick visible, only the rows should scroll upwards. This seems the default behavior if the grid is the only component within a Div. (at least the grid demos working this way) For the more generic use case, there is an issue regarding this topic
Is there any workaround (e.g. with Scroller) or how ca I achieve such behavior