title: How to set the first row of table colorful?
body: <p>I have a table and I want to make its header row as gray color.
  I have tried the below methode but it gives the whole table as gray color</p>
  
  <pre><code> PdfPTable table1 = new PdfPTable(4);
   table1.SetTotalWidth(new float[] { 50f,80f,50f,330f });
   table1.TotalWidth = 800f;//table size
   table1.LockedWidth = true;
  
   table1.HorizontalAlignment = 0;
   table1.SpacingBefore = 5f;//both are used to mention the space from heading
   table1.SpacingAfter = 5f;
   table1.DefaultCell.BackgroundColor = BaseColor.LIGHT_GRAY;
   table1.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
   table1.AddCell(new Phrase("NO", time515));
   table1.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
   table1.AddCell(new Phrase("Date &amp; Day", time515));
   table1.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
   table1.AddCell(new Phrase("Hr", time515));
   table1.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
   table1.AddCell(new Phrase("Topics to be Covered", time515));
   Doc.add(table1);
  </code></pre>
  
  <p>Kindly see my expected output image
  <a href="https://i.stack.imgur.com/Na31X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Na31X.png" alt="enter image description here"></a></p>