title: C# NPOI rowStyle
body: <p>Ii have applied <code>NPOI</code> to generate the excel. So far so good except that I want to bold a row.</p>
  
  <p>I have tried:</p>
  
  <pre><code>tmpRow.RowStyle = workbook.CreateCellStyle();
  tmpRow.RowStyle.SetFont(boldFont);
  </code></pre>
  
  <p>However, nothing has changed.</p>
  
  <p>While I can do it by setting it one by one:</p>
  
  <pre><code>ICellStyle boldFontCellStyle = workbook.CreateCellStyle();
  IFont boldFont = workbook.CreateFont();
  boldFont.IsBold = true;
  boldFontCellStyle.SetFont(boldFont);
  for (int p= 0; p &lt;= 12; p++)
  {
      tmpRow.GetCell(p).CellStyle = boldFontCellStyle;
  }
  //tmpRow.RowStyle = workbook.CreateCellStyle();
  //tmpRow.RowStyle.SetFont(boldFont);
  </code></pre>
  
  <p>I would like to know if there is any way to set an entire row style in <code>NPOI</code>? </p>
  
  <p>Thanks.</p>