Click here to Skip to main content
Licence 
First Posted 27 Apr 2003
Views 120,708
Downloads 1,893
Bookmarked 39 times

PagingRepeater Control with Page Navigation

By Dan Glass | 27 Apr 2003
PagingRepeater control extending Repeater with page navigation
8 votes, 61.5%
1
2 votes, 15.4%
2

3
2 votes, 15.4%
4
1 vote, 7.7%
5
1.69/5 - 13 votes
1 removed
μ 2.20, σa 2.52 [?]

Introduction

I found the need to page through a Repeater object in C#, since it is light weight and offers the flexibility that DataGrid doesn't have. There are a couple of bugs with the ViewState, but this is a work in progress and I hope that it will be resolved. The control works fine as-is, though. The implementation of the paging was inspired from the DataGrid directly using Anakrino, the decompiler for .NET.

Using the Control

The control can be added to your favorite control library, and then use the Add/Remove Control context menu on the Toolbox panel, to add the refence to the compiled dll. Dragging this to the page will generate the following:

<cc1:PagingRepeater id="PagingRepeater1" runat="server"></cc1:PagingRepeater>

Switching to design view at this point before building your templates is advised since the templates contain data binding, the IDE will give you errors about switching to design view. I have attempted to implement a full range of features a leveraged already written code wherever possible.

I am open to suggestions and improvments on this class. As I use it in more and more real-world applications, it will become for feature complete.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Dan Glass

Architect
support.com
Australia Australia

Member
Tech Support

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberMember 40053606:12 25 Feb '09  
QuestionErrors on Code Pinmemberdhip4:23 10 May '06  
GeneralError on Paging Pages PinmemberAgus Kurniawan18:30 7 Dec '05  
GeneralWorking sample PinmemberJacobs766:59 14 May '05  
QuestionHow to set and use Dataset as DataSource field in your control? Pinmembersoniko11:25 12 Jan '05  
GeneralException PinmemberJcomp5:10 24 Jun '03  
GeneralRe: Exception Pinmemberjlev694:51 31 Jul '04  
GeneralYou should contact the editors PinmemberJon Sagara16:24 11 May '03  
GeneralRe: You should contact the editors PinmemberDan Glass14:50 21 May '03  
QuestionHow about some sample code? PinsussAnonymous7:03 29 Apr '03  
AnswerRe: How about some sample code? PinmemberDan Glass14:51 21 May '03  
GeneralNo attatchment PinmemberDan Glass8:03 28 Apr '03  
GeneralRe: No attatchment Pinmembersun_yy_ss23:05 15 May '03  
GeneralRe: No attatchment PinmemberDan Glass14:50 21 May '03  
GeneralRe: No attatchment PinmemberPorscheCLW14:01 19 May '04  
GeneralRe: No attatchment Pinmembersimonyang3:47 21 Jul '04  
GeneralRe: No attatchment Pinmembersimonyang22:38 21 Jul '04  
GeneralRe: No attatchment Pinmembertnguyenvn20:58 7 Nov '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120209.1 | Last Updated 28 Apr 2003
Article Copyright 2003 by Dan Glass
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid