Can someone tell me how I can print all of the contents displayed in a datagrid component when the content requires scrolling?

Thanks.