Hi, I read below sentences in this article: Custom Paging in ASP.Net GridView using SQL Server Stored Procedure " Now the question arises why there’s need to take so much pain when ASP.Net GridView control has in built paging mechanism. The answer is that 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. " I'd like to know what about Paging listview with datapager? does datapager fetch all the recoreds too? if yes, can we do custom paging for listview like gridview with the same steps in above article?
DataPager also works the same way as GridView. Unless you do Custom Paging in Stored Procedure.
The same article will work for ListView also Just wherever you have GridView Replace with ListView
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.