Problem with Efficient Gridview paging without datasource control
        Posted  
        
            by Ronnie Overby
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ronnie Overby
        
        
        
        Published on 2010-03-25T20:07:05Z
        Indexed on 
            2010/03/25
            20:43 UTC
        
        
        Read the original article
        Hit count: 436
        
I am trying to do efficient paging with a gridview without using a datasource control. By efficient, I mean I only retrieve the records that I intend to show.
I am trying to use the PagerTemplate to build my pager functionality.
In short, the problem is that if I bind only the records that I intend to show on the current page, the gridview doesn't render its pager template, so I don't get the paging controls.
It's almost as if I MUST bind more records than I intend to show on a given page, which is not something I want to do.
© Stack Overflow or respective owner