title: Set gridview column width programmatically in asp.net
body: <p>Need to set the column width of a gridview in asp.net programmatically. 
  ** Autogenerated Columns (i.e., AutogenerateColumns = "true").</p>
  
  <p>I tried the following;</p>
  
  <pre><code>protected void gv_RowCreated(object sender, GridViewRowEventArgs e)
  {
      e.Row.Cells[2].Width = Unit.Pixel(200);
  }
  </code></pre>
  
  <p>but no use.</p>