I have an aspx page which has a GridView and a Panel with Summary Data. The Summary Data is in a control and the GridView is on the aspx page. When someone clicks an item in the Summary Data, I want to rebind the GridView, but I can’t figure out how to do it from the control.
I tried using FindControl, but probably did not use it correctly.
I tried this with FindControl, but it didn’t work:
GridView gv = (GridView)FindControl('gvSearchResults'); //returns null
You should send a GridView reference to the control as a Property of the control (
or something).