How to make the repeater items only displayed in the specified range?

I hope that the repeater can display all the content in the range I specify like a table, and the parts beyond the range can be browsed by using the scroll bar to slide.
Is there any way to achieve it?