Note that there are some explanatory texts on larger screens.

plurals
  1. POWrap header doesn't work in IE
    primarykey
    data
    text
    <p>Currently I'm programming something in asp.net. I have a gridview of 69ish columns and 250.000 records. I have paging on the gridview and I show 15 records / page.</p> <p>Now to be able to add more records I want to wrap my header text.</p> <pre><code>For example: | Project Funds in USD | (should it be) --- (what I have now) | Project | Funds in USD </code></pre> <p>In my headerstyle of my gridview I've tried several things:</p> <ol> <li><code>Wrap="false";</code></li> <li>Cssclass -> <code>white-space:nowrap;</code></li> </ol> <p>I have also noticed that when I run the web application locally, IE 'reads' it perfectly and wraps it like I want it to wrap. However when I publish it to the company web server, it freaks out and does whatever the hell he wants.</p> <pre><code>&lt;div style="overflow: auto; width: auto; height: auto; margin-top: 5px; clear:both"&gt; &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowSorting="True" DataKeyNames="iol_id" CellPadding="4" ForeColor="#333333" OnSorting="GridView1_Sorting"&gt; &lt;RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center"/&gt; &lt;Columns&gt; &lt;asp:BoundField DataField="Rank" HeaderText="Rank" SortExpression="Rank" ItemStyle-Wrap="false"&gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="OI_IV_Status" HeaderText="OI IV Status" SortExpression="OI_IV_Status" ItemStyle-Wrap="false"&gt; &lt;ItemStyle Wrap="false" /&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Supplier_Code" HeaderText="Supplier Code" SortExpression="Supplier_Code" ItemStyle-Wrap="false" &gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Billing_Period" HeaderText="Billing Period" SortExpression="Billing_Period" ItemStyle-Wrap="false" &gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Invoice_Type" HeaderText="Invoice Type" SortExpression="Invoice_Type" ItemStyle-Wrap="false" &gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Invoice_Number" HeaderText="Invoice Number" SortExpression="Invoice_Number" ItemStyle-Wrap="false" &gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Bussiness" HeaderText="Bussiness" SortExpression="Bussiness" ItemStyle-Wrap="false"&gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Payer_LE_Code" HeaderText="Payer LE Code" SortExpression="Payer_LE_Code" ItemStyle-Wrap="false"&gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; &lt;asp:BoundField DataField="Payer_LE_Name" HeaderText="Payer LE Name" SortExpression="Payer_LE_Name" ItemStyle-Wrap="false" &gt; &lt;ItemStyle Wrap="False"&gt;&lt;/ItemStyle&gt; &lt;/asp:BoundField&gt; ... &lt;/Columns&gt; &lt;FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /&gt; &lt;PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Left" /&gt; &lt;SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /&gt; &lt;HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" Wrap="false" /&gt; &lt;EditRowStyle BackColor="#999999" /&gt; &lt;AlternatingRowStyle BackColor="White" ForeColor="#284775" /&gt; &lt;/asp:GridView&gt; &lt;/div&gt; </code></pre> <ul> <li>I have deleted a lot of columns in order to make it look less like a wall of text! :) *</li> </ul> <p>If you guys need any other code, just ask me ;)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload