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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -