0

The title says it all. I have looked all over and can't find a solution.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">
        body, html
        {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow:hidden; 
            position:relative
        }

    </style>
    <title></title>
</head>
<body bgcolor="#000000" text="#FFFFFF" link="#9690CC" vlink="#FFFF0F" style="width: 100%;
    height: 100%">
    <form id="form1" runat="server">
    <div style="height: 100%; width: 100%;">
        <asp:GridView ID="GridView1" runat="server" PageIndex="1" align="center" Font-Size="X-Large"
            BackColor="Black" CellPadding="5" ViewStateMode="Enabled" Width="100%">
        </asp:GridView>
    </div>
    </form>
</body>
</html>

The width works just fine. I removed scrolling because I do not want people to scroll down I want this to just sit a screen at 100% because the gridview changes heights a lot. And I want it to adjust to the screen depending on how many rows are on it at the time.

Thanks.

2
Contributors
1
Reply
12
Views
4 Years
Discussion Span
Last Post by pritaeas
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.