title: ASP.NET Setting width of DataBound column in GridView
body: <p>I have a GridView which uses BoundField for columns. I am trying to set a maxwidth for my <code>UserInfo</code> column.</p>
  
  <p>I have tried many many ways but non of them work. Below is the code for my <em>GridView</em> :</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" AutoGenerateEditButton="True" 
  ondatabound="gv_DataBound" runat="server" DataSourceID="SqlDataSource1"
  AutoGenerateColumns="False"&gt;
  
  &lt;Columns&gt;
                  &lt;asp:BoundField HeaderText="UserId" 
                  DataField="UserId" 
                  SortExpression="UserId"&gt;&lt;/asp:BoundField&gt;
  
                  &lt;asp:BoundField HeaderText="Username" 
                  DataField="Username" 
                  SortExpression="Username"&gt;&lt;/asp:BoundField&gt;
  
                  &lt;asp:BoundField HeaderText="UserInfo" 
                  DataField="UserInfo" 
                  SortExpression="UserInfo"&gt;&lt;/asp:BoundField&gt;
  
                  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Looking for suggestions on how I can set the width of a specific column, which is my <code>UserInfo</code> column.</p>