title: print method divides gridview from middle of a row
body: <p>I have a gridview in a div and I am printing this div without a problem but when gridview fills the first page, page divides gridview from some part of a row. <a href="https://i.stack.imgur.com/CwXW8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CwXW8.png" alt="As you can see, last line of the row displayed in the second page."></a></p>
  
  <p>I wonder if there is a way to fix this?</p>
  
  <p>Edit: I want to share my printing method since it has been asked. My javascript method for printing the div which contains my gridview:</p>
  
  <pre><code>function CallPrint(strid) {
                      var prtContent = document.getElementById(strid);
                      var WinPrint = window.open('', '', 'letf=0,top=0,width=800,height=100,toolbar=0,scrollbars=0,status=0,dir=rtl');
                      WinPrint.document.write(prtContent.innerHTML);
                      WinPrint.document.close();
                      WinPrint.focus();
                      WinPrint.print();
                      WinPrint.close();
                      prtContent.innerHTML = strOldOne;
                  }
  </code></pre>
  
  <p>And my print button in .aspx:</p>
  
  <pre><code>&lt;asp:Button OnClientClick="javascript:CallPrint('divPrint');" ID="btnTeklifOnayla" runat="server" Text="Teklifi Onayla" CssClass="btn btn-success"/&gt;
  </code></pre>