Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
FindControl Problem
posted

I want to export UltraWebGrid data to Excel after a button click in my masterpage. The UltraWebGrid is located in a UltraWebTab Tab. I use the following code to find the grid control, which isn't working.

 Infragistics.WebUI.UltraWebTab.Tab tabSelected = UltraWebTab1.SelectedTabObject;

UltraWebGrid ultraWebGrid = (UltraWebGrid)tabSelected.FindControl("UltraWebGrid1");

The ultraWebGrid object is null. What am i doing wrong here?