Gridview grid lines border disappear

Posted on 2012-08-31
Last Modified: 2012-09-04

I have a Gridview and I have used the AutoFomat, when I run the page some of the Grid lines border disappear.  What is the best way to fix this issue?

Thank you!
Question by:Rad1
    LVL 18

    Accepted Solution

    Add GridLines="Both" on your gridview markup
    <asp:GridView ID="gvData" runat="server" Width="50px" 
             AutoGenerateColumns="False" onrowdatabound="gvData_RowDataBound" 
                ondatabinding="gvData_DataBinding" BackColor="LightGoldenrodYellow" 
                BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" 
                GridLines="Both" >

    Open in new window


    Author Closing Comment

    Thank you!!!

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now