Paging and Scrolling in a DataGrid Control

Discussion in 'ASP .Net Web Controls' started by M B Jiang, Nov 12, 2003.

  1. M B Jiang

    M B Jiang Guest

    I am trying to get a datagrid to use paging and also have the ability
    to scroll at the same time. For example, I set paging to display 10
    rows in a datagrid at a time. If I increase the number to more than 15
    rows in a datagrid, I want a datagrid to display 15 records with a
    scroll bar. At the same time paging should be taking place. Would
    anyone know how to get both paging and scrolling to function together?

    Thanks,
    MB
    M B Jiang, Nov 12, 2003
    #1
    1. Advertising

  2. M B Jiang

    Alvin Bruney Guest

    You can wrap the datagrid in a div tag of a specific size. Set the overflow
    to auto in the styles attributes and it will produce scrollbars if the grid
    grows beyond that dimention.

    hth

    --


    -----------
    Got TidBits?
    Get it here: www.networkip.net/tidbits
    "M B Jiang" <> wrote in message
    news:...
    > I am trying to get a datagrid to use paging and also have the ability
    > to scroll at the same time. For example, I set paging to display 10
    > rows in a datagrid at a time. If I increase the number to more than 15
    > rows in a datagrid, I want a datagrid to display 15 records with a
    > scroll bar. At the same time paging should be taking place. Would
    > anyone know how to get both paging and scrolling to function together?
    >
    > Thanks,
    > MB
    Alvin Bruney, Nov 13, 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. Ashvin Navare
    Replies:
    0
    Views:
    462
    Ashvin Navare
    Nov 16, 2003
  2. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    DataSet paging vs Datareader paging

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Oct 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    10,648
    Scott Allen
    Oct 8, 2004
  3. Roger
    Replies:
    0
    Views:
    948
    Roger
    Dec 28, 2004
  4. wh1974
    Replies:
    0
    Views:
    2,414
    wh1974
    Jan 12, 2005
  5. Red
    Replies:
    1
    Views:
    700
Loading...

Share This Page