I think the issue is that you're doing findcontrol on the gridview, when you're supposed to do it on a specific gridviewrow. That's why it's always best to check for nulls prior to using any call to findcontrol.
Where exactly are you trying to use these findcontrol calls? For instance, if it's in say RowDataBound, you would use e.Row.FindControl(blahblah).
MetalAsp.Net
All-Star
112101 Points
18246 Posts
Moderator
Re: What am i doing wrong?
Sep 04, 2009 11:01 PM|LINK
I think the issue is that you're doing findcontrol on the gridview, when you're supposed to do it on a specific gridviewrow. That's why it's always best to check for nulls prior to using any call to findcontrol.
Where exactly are you trying to use these findcontrol calls? For instance, if it's in say RowDataBound, you would use e.Row.FindControl(blahblah).