title: Formatting issue on datatable printing to pdf
body: <p>I'm using C#, ASP.NET, iTextSharp for my application.
  I have formatting issues when I print my datatable to PDF.</p>
  
  <p>I have two datatables: <strong>dt</strong> and <strong>dt_child</strong></p>
  
  <pre><code>    foreach (DataRow dr in dt.Rows)
          {
          foreach (DataColumn dc in dt.Columns)
              {
              stringWrite.Write(dr[dc]);
              }
              indentno=dr["REF"].ToString();
              dt_child = getDataTablebyProcedure("ChildProcedure",ref);
              stringWrite = getStringWriterbyDataTable(dt_child, stringWrite);
          }
  </code></pre>
  
  <p>Code is working fine. I have an issue with formatting. 
  The picture shows how it is currently displayed.<img src="https://i.stack.imgur.com/GHabI.png" alt="format"></p>
  
  <p>I want</p>
  
  <p>1: The header row of <strong>dt</strong> to be displayed. It is currently not displayed.</p>
  
  <p>2: The row of <strong>dt</strong> to be displayed in table form. Currently I'm iterating rows in each column.</p>