?
Solved

Gridview not showing right border in IE and Chrome

Posted on 2013-01-03
3
Medium Priority
?
1,574 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 1600 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 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