|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help: grid Paging trouble ???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 I don't think you can click twice on the same page number. Have you
tried clicking page 1 ou 3 for example ? 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 ? > > Have you checked that on your page, the page numbers are correctly
rendered as link to __doPostBack javascript method ? 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 ? > > And when you click on your buttons the __doPostBack method is fired ?
Does your browser reload ? 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 ? > > 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 ? > > |
|||||||||||||||||||||||