title: How to Increase width of particular column in code behind c #?
body: <p>I am trying to increase width of column that I created in c# my code is,</p>
  
  <pre><code>DataTable dt = new DataTable("MyTable");
  dt.Columns.Add(new DataColumn("Project ID", typeof(int)));
  dt.Columns.Add(new DataColumn("Title", typeof(string)));
  dt.Columns.Add(new DataColumn("name", typeof(double)));
  dt.Columns.Add(new DataColumn("email", typeof(double)));
  dt.Columns.Add(new DataColumn("description", typeof(double)));
  dt.Columns.Add(new DataColumn("ownerdetail", typeof(double)));
  DataRow dr;
  </code></pre>
  
  <p>How to set its width? I have found to implement it like,</p>
  
  <pre><code>dt.Columns.Add(new DataColumn("Title", typeof(string))).width; 
  </code></pre>
  
  <p>But "<em>.with</em>" does not exist then how would we solve it? Hopes for your suggestion thanks in advance  </p>
  
  <p><strong>EDITED:</strong>
  How to set Column exist in grid view my code is ,</p>
  
  <pre><code>GridViewHcost.DataSource = dset;
  </code></pre>
  
  <p>I try it as help from net,</p>
  
  <pre><code>GridViewHcost.Columns.width = 20;
  </code></pre>
  
  <p>But in this command "<em>.Width</em>" does not exist. Hopes for your suggestion </p>