DataGrid How to display all of the records when printing?

I used a third party PDF library instead of directly printing, thank you for your support.