title: HorizontalAlign.Center not working in GridView
body: <p>I am using an ASP Data Grid I am Binding the data field,Header Text dynamically through code behind(c#).</p>
  
  <p>I am also setting the style of the column dynamically all are working fine but one of the Column Horizontal-align.Center is not working .</p>
  
  <p>I have checked if the style is getting overridden but it is not...</p>
  
  <p>This the block of code giving an issue:</p>
  
  <pre><code>        BoundField field4 = new BoundField();
          field4.DataField = dtdata.Tables[0].Columns["data"].ToString();
          field4.HeaderText = "Percentage%";
          field4.DataFormatString = "{0:N1}%";
          field4.SortExpression = "data";
          field4.ItemStyle.HorizontalAlign = HorizontalAlign.Center;
          grdMarginGrid.Columns.Add(field4);
  </code></pre>
  
  <p>Can anyone help me in recognising where the issue is..</p>
  
  <p>Thanks in advance,
  Divya.</p>