Paging with DataList

Posts   
 
    
haosir
User
Posts: 3
Joined: 04-Jun-2008
# Posted on: 04-Jun-2008 06:43:19   

Hi,

As we know, LLBLgen Pro Datasource can be bound to GridView with paging automaticly. Can it be used on DataList (add controls to paging) by calling some Property or Method like GridView ( recordcount, pageindex, pagesize etc. .)?

thanks

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 04-Jun-2008 10:12:17   

As far as I know, Paging is not built-in inside the DataList control. You'll have to manage it yourself. In order to do that with LLBLGenProDataSource, you'll have to set LivePersistence = false; and then handle the following events: PerformGetDbCount PerformSelect PerformWork

In the PerformSelect handler you should pass the PageSize and the PageNumber to the fetch method you call to fill your inner data container.