title: How to create a csv file with bold header row using C#
body: <p>I want to create a csv file with bold header text.This following code is creating one header row.But i want this header in bold style.</p>
  
  <pre><code>       'Add Response header 
  
      Response.Clear()
      Response.AddHeader("content-disposition", String.Format("attachment;filename={0}.csv", "check_"))
      Response.Charset = ""
      Response.ContentType = "application/vnd.csv"
  
      Try
          Dim sb As New StringBuilder()
          'Add Header  dr.GetName(count)     
  
          For count As Integer = 0 To GridView1.Columns.Count - 1
              If GridView1.Columns(count) IsNot Nothing Then
                  sb.Append(GridView1.Columns(count).HeaderText)
              End If
              If count &lt; GridView1.Columns.count - 1 Then
                  sb.Append(",")
              End If
          Next
          Response.Write(sb.ToString() + vbLf)
          Response.Flush()
  
      Catch ex As Exception
          Response.Write(ex.Message)
      End Try
      Response.[End]()
  </code></pre>