Gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BrotherMountain
    New Member
    • Mar 2010
    • 2

    Gridview

    hi all,
    can u please tell me how to remove grid lines from Grid View suing style sheet...
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    Hello BrotherMountain ,

    Here is an example that you can use:

    Code:
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default15.aspx.vb" Inherits="Default15" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head runat="server">
            <title></title>
            <style>
                .NoGridLines td {border-style: none;}
            </style>
        </head>
        <body>
            <form id="form1" runat="server">
                <div>
                    <asp:GridView ID="GridView1" runat="server" CssClass="NoGridLines"></asp:GridView>
                </div>
            </form>
        </body>
    </html>
    Happy Coding,
    CroCrew~

    Comment

    Working...