title: Unable to change the gridview column width programatically
body: <p>On my windows form, I need to programatically set the width of columns in the grid view. I am using the following code:</p>
  
  <pre><code>this.dgridv.Columns[columnName].Width = columnWidth;
  </code></pre>
  
  <p>The above stmt runs without any error. But, the column width remains unchanged. If I insert a breakpoint and check the value of width after the stmt runs, it is still 100, which I guess is the default value of datagrid column width.</p>
  
  <p>Is there something else I need to do apart from this? Are there any values I need to set before changing the column width?</p>
  
  <p>Any help or pointers on this are highly appreciated.</p>
  
  <p>Thanks :)</p>