Beginners question about DataGrid and page selection

Discussion in 'ASP .Net' started by Alex, Apr 19, 2004.

  1. Alex

    Alex Guest

    I ahve a DataGrid that is using selective data from a DataSet. I defined for
    each column how to bind.
    I'm using 10 rows disaplyed at the time. I have 11 items. Therefore a number
    2 link shows up.
    However when clicking on it, after the Postback I'm still on page 1.

    What do I need to change to make this work?
     
    Alex, Apr 19, 2004
    #1
    1. Advertisements

  2. On PageIndexChanged of the datagrid, set MyDataGrid.CurrentPageIndex to e.NewPageIndex and rebind the data to the grid

    ----- Alex wrote: ----

    I ahve a DataGrid that is using selective data from a DataSet. I defined fo
    each column how to bind
    I'm using 10 rows disaplyed at the time. I have 11 items. Therefore a numbe
    2 link shows up
    However when clicking on it, after the Postback I'm still on page 1

    What do I need to change to make this work
     
    =?Utf-8?B?QmlsbCBCb3Jn?=, Apr 19, 2004
    #2
    1. Advertisements

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. thegame
    Replies:
    1
    Views:
    1,045
    =?Utf-8?B?ZGlyazQx?=
    Feb 28, 2005
  2. Paul  Smith
    Replies:
    0
    Views:
    4,931
    Paul Smith
    Sep 2, 2003
  3. Simon Niederberger
    Replies:
    2
    Views:
    18,543
    Christian Kaufhold
    Jan 7, 2005
  4. Andrew Crowe
    Replies:
    1
    Views:
    4,978
    Andrew Crowe
    Sep 13, 2004
  5. RTypeX
    Replies:
    1
    Views:
    1,033
    RTypeX
    Sep 25, 2008
  6. curiousity

    HOWTO autopost the selection list upon selection

    curiousity, Nov 21, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    414
    curiousity
    Nov 21, 2003
  7. Loebb
    Replies:
    0
    Views:
    345
    Loebb
    Feb 23, 2004
  8. Replies:
    1
    Views:
    351
Loading...