GridView Tips and Tricks

Apparently the ASP.NET GridView is the most commonly used data control in the ASP.NET control toolkit! I’d also wager a bet that it’s one of the most abused controls, and I know that it’s certainly responsible for generating some of the worst excuses for ASP.NET code I’ve seen.

My personal nemesis is the overuse of FindControl - in my ever so humble opinion, if you have to use FindControl at all then you’ve probably failed. Sure there are exceptions, but as a general rule that’s a good one to go by.

However the ASP.NET GridView Tips and Tricks Collection over at devcurry looks like a good collection of tips for those of you who insist on not using ListViews for whatever reason (you’re stuck in a time warp and can’t get out of 2005?), and hopefully will help guide people towards saner use of this control.

My personal contribution: #26 – Don’t use GridViews.

Link: ASP.NET GridView Tips and Tricks Collection

Tags: ,

Posted on Thursday, November 11, 2010 11:00 PM |

Like this? Share it!

No comments posted yet.

Post a comment
Please add 5 and 5 and type the answer here:
Remember me?
Ensure the word in this box says 'orange':