Scrolling in a div problem

Discussion in 'ASP .Net' started by Tina, May 16, 2008.

  1. Tina

    Tina Guest

    I wrote a user control called EditGrid. It's only visual component is a
    GridView. My problem is that when I use it on an aspx page it won't scroll
    inside a DIV. ...

    <div id="EGDiv" style=" WIDTH: 100%; HEIGHT: 100px; overflow: auto;">
    <uc1:EditGrid ID="myEG" runat="server" />
    </div>
    The vertical scroll bars show to the right but the EditGrid's GridView runs
    down the page covering up everything below.

    Does my user control have to have some property set or some behavior added
    so that it will scroll inside a grid?
    Thanks,
    Gary
    Tina, May 16, 2008
    #1
    1. Advertising

  2. Tina

    Rain Guest

    on the div. You need to set the css property overflow to hidden and fix the
    height.


    {
    height:200px;
    overflow:hidden;

    }


    "Tina" <> wrote in message
    news:...
    >I wrote a user control called EditGrid. It's only visual component is a
    >GridView. My problem is that when I use it on an aspx page it won't scroll
    >inside a DIV. ...
    >
    > <div id="EGDiv" style=" WIDTH: 100%; HEIGHT: 100px; overflow: auto;">
    > <uc1:EditGrid ID="myEG" runat="server" />
    > </div>
    > The vertical scroll bars show to the right but the EditGrid's GridView
    > runs down the page covering up everything below.
    >
    > Does my user control have to have some property set or some behavior added
    > so that it will scroll inside a grid?
    > Thanks,
    > Gary
    Rain, May 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. stan
    Replies:
    0
    Views:
    448
  2. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    745
  3. Marco Jardim

    Scrolling Problem with DIV Visibility

    Marco Jardim, Nov 12, 2004, in forum: Javascript
    Replies:
    3
    Views:
    89
    Lady Chatterly
    Nov 13, 2004
  4. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    186
    David Dorward
    Jun 1, 2005
  5. mscir
    Replies:
    3
    Views:
    307
    Martin Honnen
    Jun 26, 2005
Loading...

Share This Page