title: How to prevent table header split in TextSharp Pdftable
body: <p>I have a dynamic table that will occupy half to full page and a dynamic table after that. The problem is there is lot of space if i move the whole table to a new page sometimes and if i break the table the header alone is in one page and the rest of the content is in the next page sometimes.</p>
  
  <p>I want to know if it is possible to make sure that the page break is not introduced between the table header and the first row of the table.</p>
  
  <p>I am aware of how to do the following,</p>
  
  <p>Prevent the whole table from splitting if there is not enough space in the page and move it to a new page by using</p>
  
  <pre><code>KeepTogether = true
  </code></pre>
  
  <p>Allow the table to split but prevent the row from splitting if there is not enough space by using</p>
  
  <pre><code>KeepTogether = false;
  
  SplitRows = true;
  
  SplitLate = true;
  </code></pre>
  
  <p>Repeat the table header if the table spans across multiple pages</p>
  
  <p>But i don't want any of these methods. I want to allow the table to split but just not between the header and the first row or the first two rows otherwise. Please any one give some idea to sort out this issue.</p>
  
  <p>Samplepdf:</p>
  
  <p><img src="https://i.stack.imgur.com/DF0TA.png" alt="image"></p>