Help: grid Paging trouble ???

G

Guest

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
 
J

Julien

I don't think you can click twice on the same page number. Have you
tried clicking page 1 ou 3 for example ?
 
G

Guest

I am not clicking twice on the same number, I am clicking on successive pages
number but nothing happen
 
J

Julien

Have you checked that on your page, the page numbers are correctly
rendered as link to __doPostBack javascript method ?
 
J

Julien

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

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top