title: Print Datagrid records in WPF
body: <p>I need to print datagrid records only. I used one code like this, but this one printed datagrid scroll bar also. I need only records.</p>
  
  <pre><code>PrintDialog printDlg = new PrintDialog();
  printDlg.PrintVisual(grid1, "Grid Printing.");
  </code></pre>