Total Records Count

Posts   
 
    
TogasPoon
User
Posts: 42
Joined: 09-Feb-2006
# Posted on: 08-Feb-2008 18:58:30   

2.0.0.0 Selfserving .NET 2.0 SQL Server 2005

What's the easiest way to get the total record count from a datasource when using paging?

I have a GridView attached to this datasource

<llblgenpro:LLBLGenProDataSource ID="dsOTS" runat="server" DataContainerType="EntityCollection" LivePersistence="True" EntityCollectionTypeName="MSI.Main.CollectionClasses.OrderTrackingViewCollection, MSI.Main" EnablePaging="true" />

The page size depends on the user.

I'd like to the total records so I can include that information on the main page.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 09-Feb-2008 12:10:24   

With livepersistence set to false and fill in the small piece of code in the PerformDBCount event handler

Frans Bouma | Lead developer LLBLGen Pro