title: WPF Datagrid printing - pagination with groups
body: <p>I've been attempting to get this working for a while now, and I've had no luck. I have a datagrid (although this could change to anything if it makes it easier) that contains a long list of items.</p>
  
  <p>What i'm wanting to do, is print out this list of items, keeping the grouping and group headers, however i'm unable to find any solution to this issue as all examples and solutions simply convert the datasource into a table, which dosn't keep the grouping.</p>
  
  <p>I've tried several solutions such as:
  <a href="http://www.codeproject.com/Articles/138233/Custom-Data-Grid-Document-Paginator">http://www.codeproject.com/Articles/138233/Custom-Data-Grid-Document-Paginator</a></p>
  
  <p>However I'm not sure enough of the structure of datagrids to modify the source to include groups. I'm hoping that since this seems like a pretty common thing to want to do, that some existing solutions could be suggested.</p>