Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default DataGrid Pagination

    I am trying to get pagination working on a datagrid. Can anyone point me to
    a resource for help on this? I'm not sure if custom paging is the best
    option or not.


    Joseph D. DeJohn Guest

  2. Similar Questions and Discussions

    1. Book Pagination (.indb) Continuous Pagination (HELP!)
      THE DOCUMENT: I've been working on a book with 14 separate documents using the Book feature (.indb) which coordinates the separate chapters...
    2. Pagination help?
      Looking for advice on the best way to do this: We're a daily newspaper with 8 page editors doing layout all at once — each editor has 5-7 pages...
    3. Pagination?
      how to pagination by flex?who can help me?
    4. Datagrid pagination with previous/ next and numbers simultane
      I have data grid in one of my application and I want to use previous next and numberic paging simultaneously. It is like the google page which has...
    5. datagrid custom pagination
      Hi Sudha, You can create different view for each user. While creating view specify the session name for each user. If the data is not pretty much...
  3. #2

    Default Re: DataGrid Pagination

    hi,
    I posted a similar post below.
    datagrid does paging for you, u just set AllowPaging=true for datagrid.
    it's said that custom paging is not paging at all, no page index appeared
    at the bottom if you use custom paging.

    what kind of datasource u r using for datagrid control,it seems that
    matters
    too.

    Yangtsi.



    "Joseph D. DeJohn" <joeddejohn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
    :Oz0Qn#cQDHA.2312@TK2MSFTNGP12.phx.gbl...
    > I am trying to get pagination working on a datagrid. Can anyone point me
    to
    > a resource for help on this? I'm not sure if custom paging is the best
    > option or not.
    >
    >

    Yangtsi River Guest

  4. #3

    Default Re: DataGrid Pagination

    I saw your post, but the default pagination is having problems working. I
    opted for the only other alternative. You can guess. I am using a SQL
    datasource. Can't believe you are having problems with custom paging also.
    Dunno what to think at this point.

    "Yangtsi River" <nakhi@sina.com> wrote in message
    news:eRWNPRdQDHA.3236@TK2MSFTNGP10.phx.gbl...
    > hi,
    > I posted a similar post below.
    > datagrid does paging for you, u just set AllowPaging=true for datagrid.
    > it's said that custom paging is not paging at all, no page index appeared
    > at the bottom if you use custom paging.
    >
    > what kind of datasource u r using for datagrid control,it seems that
    > matters
    > too.
    >
    > Yangtsi.
    >
    >
    >
    > "Joseph D. DeJohn" <joeddejohn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
    > :Oz0Qn#cQDHA.2312@TK2MSFTNGP12.phx.gbl...
    > > I am trying to get pagination working on a datagrid. Can anyone point
    me
    > to
    > > a resource for help on this? I'm not sure if custom paging is the best
    > > option or not.
    > >
    > >
    >
    >

    Joseph D. DeJohn Guest

  5. #4

    Default Re: DataGrid Pagination

    allowpaging passes control to the datagrid to take care of most of it, all
    it means is the control divides up the page according to your page count,
    you still have to instantiate a post back procedure that handles switching
    to the different pages...

    custom pages does work, but it doesn't split the pages up for you, you've
    more control, and hence have to do more work with the control to get the
    results you want... (you may want all the records in may 2000 in one page,
    for example, and there may be more in june, so a straight count that the
    allowpaging uses wouldn't work...)

    the postback method is easy enough.

    Sub MyDBgrid_Paging(sender As Object, e As DataGridPageChangedEventArgs)
    MyDBgrid.CurrentPageIndex = e.NewPageIndex
    BindData()
    End Sub


    this simply gets the number that was clicked on from 'e', then tell the grid
    what page it's on before binding the data.

    good luck


    "Joseph D. DeJohn" <joeddejohn@hotmail.com> wrote in message
    news:e52bAZdQDHA.2320@TK2MSFTNGP12.phx.gbl...
    > I saw your post, but the default pagination is having problems working. I
    > opted for the only other alternative. You can guess. I am using a SQL
    > datasource. Can't believe you are having problems with custom paging
    also.
    > Dunno what to think at this point.
    >
    > "Yangtsi River" <nakhi@sina.com> wrote in message
    > news:eRWNPRdQDHA.3236@TK2MSFTNGP10.phx.gbl...
    > > hi,
    > > I posted a similar post below.
    > > datagrid does paging for you, u just set AllowPaging=true for datagrid.
    > > it's said that custom paging is not paging at all, no page index
    appeared
    > > at the bottom if you use custom paging.
    > >
    > > what kind of datasource u r using for datagrid control,it seems that
    > > matters
    > > too.
    > >
    > > Yangtsi.
    > >
    > >
    > >
    > > "Joseph D. DeJohn" <joeddejohn@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
    > > :Oz0Qn#cQDHA.2312@TK2MSFTNGP12.phx.gbl...
    > > > I am trying to get pagination working on a datagrid. Can anyone point
    > me
    > > to
    > > > a resource for help on this? I'm not sure if custom paging is the
    best
    > > > option or not.
    > > >
    > > >
    > >
    > >
    >
    >

    Daniel Bass Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139