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

<html xmlns="">
<head runat="server">
    <style type="text/css">
        body, html
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;

<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%">

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.


Care to share your solution?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.