Solved

Gridview not showing right border in IE and Chrome

Posted on 2013-01-03
3
1,529 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
[X]
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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

717 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