title: Telerik Reporting: Adding Textbox at Runtime Does Not Show Up
body: <p>I'm currently working on a report using Telerik Reporting (release Q1 2013), and I'm attempting to add a textbox at runtime to a header (and eventually the detail section as well), but the issue is the textbox that gets added does not show up.  I'm not sure why it's not displaying, but there are no errors that occur after it is added.  Right now I'm trying to add it during the itemdatabinding event.  My code is below:</p>
  
  <pre><code>public partial class _WellPlateReport : Telerik.Reporting.Report
  {
    public _WellPlateReport(Dictionary&lt;string, object&gt; ReportParameters)
    {
      //
      // Required for telerik Reporting designer support
      //
      InitializeComponent();
      tbGenotype.Visible = false;
      //
      // TODO: Add any constructor code after InitializeComponent call
      //
    }
  
    private void labelsGroupHeaderSection_ItemDataBinding(object sender, EventArgs e)
    {
      string temp = "";
  
      Telerik.Reporting.Processing.GroupSection headerGroup = (Telerik.Reporting.Processing.GroupSection)sender;
  
      Telerik.Reporting.TextBox tb = new Telerik.Reporting.TextBox();
      tb.Left = new Telerik.Reporting.Drawing.Unit(0.5, UnitType.Inch) + tbGenotype.Left +   tbGenotype.Width;
      //tb.Width = new Telerik.Reporting.Drawing.Unit(3.0, UnitType.Inch);
      tb.Size = tbSex.Size;
      tb.Name = "TestLabel1";
      tb.Value = "Test Label";
      tb.Location = new Telerik.Reporting.Drawing.PointU(tbGenotype.Left + tbGenotype.Width + new Telerik.Reporting.Drawing.Unit(0.5, UnitType.Inch), Telerik.Reporting.Drawing.Unit.Inch(0D));
  
      //this.labelsGroupHeaderSection.Items.Add(tb);
      //this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { tb });
  
      this.labelsGroupHeaderSection.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { tb });
    }
  }
  </code></pre>
  
  <p>The tbGenotype is another textbox that the new textbox will be added next to at runtime, so i'm using the positioning of that to place the dynamic textboxes.  There is an unknown number of additional columns that will need to be added, but I'm not sure why this isn't working.  My searches showed others adding controls in a similar way.</p>
  
  <p>Update: Also note, that the textbox tbGenotype was added in the designer in visual studio.  Trying to set the visible property on that works, but adding the textbox to the header does not.</p>