So I have tried to define the width of the template field in 7 places (ControlStyle-Width, ItemStyle-Width, HeaderStyle-Width, ControlStyle Width, ItemStyle Width, TextBox Width and finally in a css), but it still wraps the content ("1400 kr"). What is the matter here?
<asp:TemplateField HeaderText="Totalt" ControlStyle-Width="100" ItemStyle-Width="100" ItemStyle-Wrap="True" HeaderStyle-Width="100" ControlStyle-CssClass="wide"> <ItemTemplate> <asp:TextBox ID="tbTotalPrice" runat = server ReadOnly="true" Width="100px"></asp:TextBox> </ItemTemplate> <ControlStyle Width="100px" /> <ItemStyle HorizontalAlign="Right" Width="100px" /> </asp:TemplateField> the style sheet:
.wide { width: 120px; column-width: 120px; }