Consider data has 20 records and for a certain screen size 8 rows will fit and for another screen size only six rows will fit. So as per screen height automatically loading number of rows can be easily achieved with css grid (ref-- Make grid container fill columns not rows). But my requirement is to add header for each column. How can this be achieved ?
Image One
Image Two