title: How to Set font-color and size in gridview using c#?
body: <p>I'm exporting temporary DataGrid to PDF by using the Following Code, </p>
  
  <pre><code>        System.Data.DataTable dt = new System.Data.DataTable();
          CDbAccess db = new CDbAccess();
          IDbConnection conn = db.GetConnectionInterface();
          conn.Open();
  
          IDbCommand cmd = db.GetCommandInterface(str);
  
          IDbDataAdapter da = db.GetDataAdapterInterface(cmd);
          da.SelectCommand = cmd;
          DataSet ds = new DataSet();
  
          try
          {
              da.SelectCommand = cmd;
              da.Fill(ds);
              dt = ds.Tables[0];
          }
          catch (Exception ex)
          {
              throw ex;
          }
          finally
          {
              conn.Close();
              // da.Dispose();
              conn.Dispose();
          }
  
          GridView GridView1 = new GridView();
          GridView1.AllowPaging = false;
          GridView1.DataSource = dt;
          GridView1.DataBind();
          GridView1.HeaderStyle.BackColor = System.Drawing.Color.DeepSkyBlue;
  
          Response.ContentType = "application/pdf";
          Response.AddHeader("content-disposition",
              "attachment;filename=BugReport.pdf");
          Response.Cache.SetCacheability(HttpCacheability.NoCache);
          StringWriter sw = new StringWriter();
          HtmlTextWriter hw = new HtmlTextWriter(sw);
          GridView1.RenderControl(hw);
          StringReader sr = new StringReader(sw.ToString());
          Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f);
          HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
          PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
          pdfDoc.Open();
  
          htmlparser.Parse(sr);
          pdfDoc.Close();
          Response.Write(pdfDoc);
          Response.End();
  </code></pre>
  
  <p>And the Output is looking worse, so that i need to align the Output.</p>
  
  <p>And i just want to set Font color and Font Size to particular column.</p>
  
  <p>How to set it using C#? </p>