title: GridView Column Width Issue C#
body: <p>I am trying to set the width of a column in a Gridview in C# and it is not working at all. I have tried to set the header style and item style via the following method:</p>
  
  <pre><code>GridView1.Columns[0].ItemStyle.Width = Unit.Pixel(200);
  </code></pre>
  
  <p>and similarly for the header style. None of this seems to be working. I see many forums online that people are having a similar issue but after looking for approx 1h30m I still could not find one that also had a solution.</p>
  
  <p>There is also one stipulation - all of the columns in my grid are dynamic so it must be something that I can set programatically - not in markup.</p>
  
  <p>I appreciate any help on this issue!</p>
  
  <p><strong>EDIT:</strong> with the help of Jon and through some other research I believe the issue is because I have defined no columns in the markup. However, I have not figured out how to resolve this. I cannot place columns in the markup because the table is generated using repeaters on the back end. If anyone has any insight into this please let me know.</p>