Home All Groups Group Topic Archive Search About

Help: grid Paging trouble ???

Author
27 Jan 2006 8:00 AM
serge calderara
Dear all

I have a datagrid on which I have impement paging
I set proper properties for the grid and add following code in
dbGrid_PageIndexChanged event:


        dbGrid.CurrentPageIndex = e.NewPageIndex
        dbGrid.DataSource = ds.Tables(0)
        dbGrid.DataBind()

When I run my application and click on page 2, the a page_Load event occurs
and then I jump in my dbGrid_pageIndexChanged event.

Problem is that if I click on page 2, nothing happen any more, the page_load
event is not fire and dbGrid_pageIndexChanged either.

It works only once, any idea where is the problem ?

regrards
serge
    End Sub

Author
27 Jan 2006 8:15 AM
Julien
I don't think you can click twice on the same page number. Have you
tried clicking page 1 ou 3 for example ?
Author
27 Jan 2006 8:49 AM
serge calderara
I am not clicking twice on the same number, I am clicking on successive pages
number but nothing happen

Show quote
"Julien" wrote:

> I don't think you can click twice on the same page number. Have you
> tried clicking page 1 ou 3 for example ?
>
>
Author
27 Jan 2006 9:06 AM
Julien
Have you checked that on your page, the page numbers are correctly
rendered as link to __doPostBack javascript method ?
Author
27 Jan 2006 10:07 AM
serge calderara
Yes there are, otherwise I will never be able to jump at least once to page 2

Show quote
"Julien" wrote:

> Have you checked that on your page, the page numbers are correctly
> rendered as link to __doPostBack javascript method ?
>
>
Author
27 Jan 2006 10:33 AM
Julien
And when you click on your buttons the __doPostBack method is fired ?
Does your browser reload ?
Author
27 Jan 2006 12:53 PM
serge calderara
it fired only one time

Show quote
"Julien" wrote:

> And when you click on your buttons the __doPostBack method is fired ?
> Does your browser reload ?
>
>
Author
30 Jan 2006 2:15 PM
serge calderara
I find it out...
problem was due to the fact that I have a cache active for the page. If it
so, paging works only once.


Show quote
"Julien" wrote:

> And when you click on your buttons the __doPostBack method is fired ?
> Does your browser reload ?
>
>

AddThis Social Bookmark Button