C# List View Paging
4/1/2014·3 min read
ListView + DataPager
This's article shows how to use .NET ListView to enable paging, basically, since ListView had imprement IPageableItemContainer, it's able to use DataPager control. You can't use GridView for DataPager since it's not imprement IPageableItemContainer, but if you still want to use DataPager for your paging in GridView, you could write your customized GridView which imprement IPageableItemContainer.
This's example only use following, ListView and DataPager. Because it's not use other objectDataSource like connect to business logic method, or linq, database. You have to bind the actual data either when page first load, or when DataPager's PreLender event.