title: How to format background of DataGridView exported to Excel?
body: <p>I want to format the background of my header cells in excel, which is populated trhough my Datagridview. I´ve tried it with </p>
  
  <p><code>ws.Cells[1. 2].Style.Fill.PatternType = ExcelFillStyle.Solid;</code></p>
  
  <p><code>ws.Cells[1, 2].Style.Fill.BackgroundColor.SetColor(Color.LightGray);</code></p>
  
  <p>but i got a error message which says the name ExcelFillStyle.Solid does not exist in the current context. Any ideas?</p>
  
  <p>Thank you</p>