How do i show all pages in the gridview

Discussion in 'ASP .Net Web Controls' started by John Cantley, Jul 1, 2009.

  1. John Cantley

    John Cantley Guest

    I set the following
    gridNews.PagerSettings.Mode = PagerButtons.Numeric;
    int pCnt = gridNews.PageCount;
    gridNews.PagerSettings.PageButtonCount = pCnt;

    It still shows pages 1-10 then the ...
    If I have 50 pages I want it to show all of them. This is not my request but
    a request from another department.

    Thanks,
    JC
    John Cantley, Jul 1, 2009
    #1
    1. Advertising

  2. John Cantley

    Stan Guest

    On 1 July, 21:04, "John Cantley" <> wrote:
    > I set the following
    > gridNews.PagerSettings.Mode = PagerButtons.Numeric;
    > int pCnt = gridNews.PageCount;
    > gridNews.PagerSettings.PageButtonCount = pCnt;
    >
    > It still shows pages 1-10 then the ...
    > If I have 50 pages I want it to show all of them. This is not my request but
    > a request from another department.
    >
    > Thanks,
    > JC


    Hi John

    Check the value that is being returned by gridNews.PageCount at the
    time it is assigned to pCnt

    If it is being read at the wrong time it might be returning zero.

    HTH
    Stan, Jul 6, 2009
    #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. Matt

    TO show or NOT to show

    Matt, May 2, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    373
  2. Replies:
    1
    Views:
    571
    Evertjan.
    Sep 30, 2005
  3. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    17,944
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  4. Denny

    Gridview pages are all underlined

    Denny, Jun 4, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    1,023
    Alexey Smirnov
    Jun 5, 2009
  5. Replies:
    1
    Views:
    167
    Evertjan.
    Sep 30, 2005
Loading...

Share This Page