AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Custom DataGrid Numeric Paging with Previous,Next, First & Last link : Saifi Hasan

Friday, September 12 2008

Some application do require custom paging style like numeric paging with links for previous, next, first, and last pages. The DataGrid did not directly support this type of layout; that's why I have developed my custom DataGrid that can be used throughout. The basic idea is very simple: Create a custom control that is inherited by DataGrid and overrides the ItemCreated event. Here, you have to understand how DataGrid renders controls for Pager. The DataGrid renders controls like this (LinkButton or label) (Literal control) (LinkButton or label) ... and so on. Literals are used to put space between controls and Labels are used to show disabled pager links...

Read More:
Custom DataGrid Numeric Paging with Previous,Next, First & Last link : Saifi Hasan
Also See:
Developing for the iPhone : Steve C. Orr
Have you seen the Silverlight? : Dave Wheeler
Generic GridView Delete Confirmations : Martin Millar
Cure Code Bloat : Steve C. Orr
JavaScript Management with ASP.NET : Karl Seguin

Post your comment

Comment