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. Advertising

  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. 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. Simon Niederberger
    Replies:
    2
    Views:
    16,554
    Christian Kaufhold
    Jan 7, 2005
  2. Andrew Crowe
    Replies:
    1
    Views:
    4,482
    Andrew Crowe
    Sep 13, 2004
  3. curiousity

    HOWTO autopost the selection list upon selection

    curiousity, Nov 21, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    275
    curiousity
    Nov 21, 2003
  4. Loebb
    Replies:
    0
    Views:
    205
    Loebb
    Feb 23, 2004
  5. Replies:
    1
    Views:
    216
Loading...

Share This Page