It's printing only a single page, and also I can't able to print header and footer for printing page. How to print a datagrid with multiple page & header and footer!!?????
1 Answer, 1 is accepted
Lance | Manager Technical Support
answered on 09 Aug 2021, 02:05 PM
Printing is something you need to do with the UWP framework itself. UI controls have no insight/responsibility of the printing APIs themselves. In regards to handling multiple pages or headers, this is also something you will need to manually deconstruct the data and generate your own headers and footers.
If that is not sufficient for you, then my best advice here would be to print the data itself instead of trying to print the DataGrid. You can reference the DataGrid.ItemsSource if you want all the items or the DataGrid's DataView if you want a viewed subset (the DataView can get you things like groups and aggregates).