posted on Friday, October 26, 2007 2:01 AM
by
thomasswilliams
A Better Pager for the ASP.NET 2.0 GridView
The default pager on the ASP.NET 2.0 GridView is not pretty, and is barely practical. I've tried styling it and mucking around with the RowDataBound and RowCreated events behind the scenes, and finally I thought I'd just have to learn to live with its limitations.
This week I discovered some great pager code on CodeProject by Daniel Vaughan, and below I've shown the difference that the "Amazon-esque Pager" control made for me:
Daniel even took the time to answer my questions on getting his C# code working with databound gridviews. Brilliant!
If you're frustrated by the limits of the in-built Pager, give Daniel's code a try and improve the situation for your users at the same time.
Tags: pager, asp.net, gridview, amazon, codeproject