Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends as we all know

in general gridview paging in .net

ASP.Net GridView fetches all the records and then displays one page from the fetched records. Thus for example if your table has 1000 records and you need to display only 50 records per page, GridView will fetch all 1000 records discard the 950 records and display the 50 records based on the page index selected by the users.

Thus the above approach is quite inefficient in terms of both bandwidth and performance.

With custom pagination we will fetch records per page based on the page index,for that we can use ROW_NUMBER() method from data base.

I know that but I have not more knowledge about it and how to implement it so any one please give and explain a demo for that kind of custom paging.

Your reply is appreciated

Thanks in advance
Posted

http://msdn.microsoft.com/en-us/library/bb445504.aspx[^]

check this link..hope it will help...
 
Share this answer
 
 
Share this answer
 
v2
Comments
Er Bhargav Dudani 5-Aug-13 7:35am    
ok I got it but now I want it as below way

I want to create grid view dynamically using java script and pass the json attributes as value andthen implement paging in this page using java script

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