That’s a very vague question.
However, assuming you mean on a DataGrid of entities, have a look at the documentation here.
https://docs.mendix.com/refguide/data-grid
In particular, look at the section for showing the paging bar. This has the paging options you’ll need for it to be handled automatically.
Good luck!