Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Gridview not showing right border in IE and Chrome

Posted on 2013-01-03
3
1,463 Views
Last Modified: 2013-01-07
I have a gridview with a nested gridview in side. My nested gridview displays correctly, but my main gridview doesn't display a right border in IE or Chrome. How can I fix this?

The only styles attached to the page currently are the ones in the gridview themselves.

    <asp:GridView ID="GridView1" AllowPaging="True" AutoGenerateColumns="false" DataSourceID="EntityDataSource1"
        DataKeyNames="RequestID" Style="width: 99%;" ShowFooter="true" Font-Size="Small"
        Font-Names="Verdana" runat="server" GridLines="None" OnRowDataBound="GridView1_RowDataBound"
        OnRowCommand="GridView1_RowCommand" OnRowUpdating="GridView1_RowUpdating"
        OnRowDeleting="GridView1_RowDeleting" OnRowDeleted="GridView1_RowDeleted" OnRowUpdated="GridView1_RowUpdated"  BorderStyle="Double" BorderWidth="1px" BorderColor="#000"
        AllowSorting="true">
        <RowStyle BackColor="Gainsboro"  />
        <AlternatingRowStyle BackColor="White"  />
        <HeaderStyle BackColor="#0083C1" ForeColor="White" />
        <FooterStyle BackColor="White" />
        <Columns>
           
            <asp:TemplateField>
                <ItemTemplate>
                    <tr>
                        <td colspan="100%">
                            <div id='div<%# Eval("RequestID") %>' style="display: block; position: relative; left: 15px;
                                overflow: auto; width: 97%">
                                <asp:GridView ID="GridView2" AllowPaging="True" AllowSorting="true" BackColor="White"
                                    Width="100%" Font-Size="X-Small" AutoGenerateColumns="false" Font-Names="Verdana"
                                    runat="server" DataKeyNames="RequestID" OnPageIndexChanging="GridView2_PageIndexChanging"
                                    OnRowUpdating="GridView2_RowUpdating" OnRowCommand="GridView2_RowCommand" OnRowEditing="GridView2_RowEditing"
                                    GridLines="None" OnRowUpdated="GridView2_RowUpdated" OnRowCancelingEdit="GridView2_CancelingEdit"
                                    OnRowDataBound="GridView2_RowDataBound" OnRowDeleting="GridView2_RowDeleting"
                                    OnRowDeleted="GridView2_RowDeleted" OnSorting="GridView2_Sorting" BorderStyle="Double" BorderWidth="1px"
                                    BorderColor="#0083C1">
                                    <RowStyle BackColor="Gainsboro" />
                                    <AlternatingRowStyle BackColor="White" />
                                    <HeaderStyle BackColor="#0083C1" ForeColor="White" />
                                    <FooterStyle BackColor="White" />
                                    <Columns>
                                       
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
0
Comment
Question by:NickMalloy
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38741802
Can you post a link to the page?

Cd&
0
 

Author Comment

by:NickMalloy
ID: 38742059
It's not on a public server.
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 400 total points
ID: 38743032
Hi,

First of all maintain separate CSS styles for styling GridView!

Regarding your problem, check this thread - http://stackoverflow.com/questions/9422326/gridview-lines-not-showing-up-in-ie

Hope it helps u...
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Check number of row prior to displaying gridview 10 62
Please explain purpose of GZIP 4 35
Responsive Font Size 6 27
How can I make the first part identical to the second ? 1 26
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question