Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.Net Gridview border not displaying in IE
    text
    copied!<p>I am working on an ASP.Net website and have a GridView displaying some data,in the <code>OnRowDataBound</code> event I am setting the border of the row for certain rows based on some criteria. </p> <p>This all worked fine when I was testing my pages locally, however when I put these pages within our master page (this is part of a company intranet site) the row borders disappear in IE yet display fine in firefox.</p> <p>Is there anything that could be causing this? So far there is no CSS style applied that I know of as I set the border inside the event handler like so:</p> <pre><code> e.Row.BorderStyle = BorderStyle.Solid e.Row.BackColor = Color.FromName("#fed69c") e.Row.BorderColor = Color.FromName("Red") e.Row.BorderWidth = "2" </code></pre> <p>Update:</p> <p>This is the CSS i grabbed from the developer tools in IE:</p> <pre><code>height: 12px; border-top-color: red; border-right-color: red; border-bottom-color: red; border-left-color: red; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; background-color: rgb(253, 254, 156); </code></pre> <p>My Gridview:</p> <pre><code>&lt;asp:GridView ID="gvTickets" runat="server" AutoGenerateColumns="False" DataKeyNames="TicketID" AllowSorting="true" DataSourceID="dsGridview" GridLines="Horizontal" OnRowDataBound="gvTickets_RowDataBound" EnableViewState="True" RowStyle-Height="12px" Width="100%" BackColor="White" Font-Size="10px"&gt; </code></pre>
 

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