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
380
Rendering problem with dynamically created WebCombo
posted

Hi,

I have a custom web control that dynamically created an ASP.NET Table control and when the control renders, it renders the Table like:

protected override void Render(HtmlTextWriter writer)

{

     _myTable.RenderControl(writer);

}

In the Controls collection of one of the TableCell objects in _myTable, I added a dynamically created WebCombo.  This Webcombo is bound to an array of strings.  However, I am getting a NullReferenceException in the call to _myTable.RenderControl.  Examining the call stack, it seems the exception is coming from the method getRenderer on the WebCombo.  Any thoughts why this is happening?

I'm using Infragistics 3.5 2009 version 1