Column width in gridview
<p>So I have tried to define the width of the template field in 7 places (<code>ControlStyle-Width</code>, <code>ItemStyle-Width</code>, <code>HeaderStyle-Width</code>, <code>ControlStyle Width</code>, <code>ItemStyle Width</code>, <code>TextBox Width</code> and finally in a <code>css</code>), but it still wraps the content ("1400 kr"). What is the matter here?</p>

<pre><code>               &lt;asp:TemplateField HeaderText="Totalt" ControlStyle-Width="100" ItemStyle-Width="100" ItemStyle-Wrap="True" HeaderStyle-Width="100" ControlStyle-CssClass="wide"&gt;
                  &lt;ItemTemplate&gt;
                        &lt;asp:TextBox ID="tbTotalPrice" runat = server ReadOnly="true" Width="100px"&gt;&lt;/asp:TextBox&gt;               
                    &lt;/ItemTemplate&gt;
                    &lt;ControlStyle Width="100px" /&gt;
                    &lt;ItemStyle HorizontalAlign="Right" Width="100px" /&gt;
                &lt;/asp:TemplateField&gt;
</code></pre>

<p>the style sheet:</p>

<pre><code>.wide {
    width: 120px;
    column-width: 120px;
}
</code></pre>
