I’ve always been bugged by the “FindControl” method on the Gridview, or any part of the page (I mainly use it on a gridviewrow after selecting). So I wrote a little Generic method. This can be added to a utilties class, or just on the codebehind page itself:
To use the new FindControl:
This is instead of doing something like:
Well, at least it seems cleaner to me in code. I’m sure that there are better ways, but this works for me for now.