Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I want to show all data in one page from Gridview but when I am using it my system get very slow.
Please help..

Thank You
Posted
Comments
Thanks7872 18-Nov-14 5:35am    
And your question is?

 
Share this answer
 
Comments
Jαved 19-Nov-14 2:23am    
+5
Thanks a lot Jαved. :)
Set the GridView property AllowPaging to true. Set PageSize(normal its 10).
Then on the onPageIndexChanging event write down the following code.

C#
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
    GridView1.PageIndex = e.NewPageIndex;
    GridView1.DataBind();
}


thats all....
 
Share this answer
 
Comments
Member 3567411 18-Nov-14 5:25am    
Hi Sir,

Thank You for your solution ....
But I want On Demand paging...when I Scroll the mouse the next page will come..

Thank You
Arkadeep De 18-Nov-14 5:40am    
check this out.
http://www.aspsnippets.com/Articles/Load-on-demand-data-in-GridView-on-scroll-using-ASPNet-and-jQuery-AJAX.aspx
See y answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900