Home All Groups Group Topic Archive Search About

How do i show all pages in the gridview

Author
1 Jul 2009 8:04 PM
John Cantley
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

Author
5 Jul 2009 11:05 PM
Stan
On 1 July, 21:04, "John Cantley" <joh***@magenic.com> 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