ajax - ASP.net Gridview Paging doesin't work inside UpdatePanel -
although, questions somehow similar have been asked number of times, question still unsolved. here question: have gridview
contained in tab container ajax
control inside updatepanel
. gridview
works excellent , corresponding methods fired accurately, when enable paging
(e.g.) after click on page 2, gridview
hides itself. here pageindexchanging() method:
protected void gridview1_pageindexchanging(object sender, gridviewpageeventargs e) { gridview1.pageindex = e.newpageindex; gridview1.databind(); updatepanel2.update(); }
why paging causes gridview
stop working correctly? can do?
the solution should refill dataset used populate gridview, each time page index changed. way, ensure in each seperate postback has been triggered gridview page number, results populated.
Comments
Post a Comment