horizontal scrollbar in a div causing another scroll bar to more.

Discussion in 'ASP .Net' started by Jeremy Chapman, Aug 15, 2003.

  1. I've got a grid inside a div so that it's got scroll bars around it.
    What I want to do is have the header row fixed at the top, so that the
    vertical scroll bars scroll just the data rows of the grid while the
    horizontal scroll bar scrolls both the data and the header row.

    The only way I can think of doing it is putting the data portion as a
    seperate grid in a div and the header in a seperate div. I would force the
    header div not to have scroll bars, and use javascript on the horizontal
    scrollbar of the data div to move the header so that it always lines up with
    the data grid's columns.

    My question is, what would the javascript look like?
     
    Jeremy Chapman, Aug 15, 2003
    #1
    1. Advertising

  2. Jeremy Chapman

    szabelin Guest

    forgot to mention: once there, go to table control, click
    on "Table Theme 9", and what you are looking for is "Table
    Control Example : 2"


    >-----Original Message-----
    >I've got a grid inside a div so that it's got scroll bars

    around it.
    >What I want to do is have the header row fixed at the

    top, so that the
    >vertical scroll bars scroll just the data rows of the

    grid while the
    >horizontal scroll bar scrolls both the data and the

    header row.
    >
    >The only way I can think of doing it is putting the data

    portion as a
    >seperate grid in a div and the header in a seperate div.

    I would force the
    >header div not to have scroll bars, and use javascript on

    the horizontal
    >scrollbar of the data div to move the header so that it

    always lines up with
    >the data grid's columns.
    >
    >My question is, what would the javascript look like?
    >
    >
    >.
    >
     
    szabelin, Aug 15, 2003
    #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. Lloyd Sheen

    Horizontal Scroll Bar for listbox

    Lloyd Sheen, Oct 31, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    22,683
    Andrew de la Harpe
    Nov 1, 2003
  2. RJN
    Replies:
    1
    Views:
    5,704
    jongalloway
    Mar 5, 2005
  3. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

    force horizontal scrollbar display on div

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Sep 2, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    5,209
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tp?=
    Sep 2, 2005
  4. Kurt Underhay

    Can't scroll horizontal scrollbar

    Kurt Underhay, Apr 11, 2005, in forum: Java
    Replies:
    1
    Views:
    2,138
  5. How to avoid horizontal Scroll bar in DIV Tag

    , Sep 14, 2008, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    1,258
    Allen Chen [MSFT]
    Sep 16, 2008
Loading...

Share This Page