title: Telerik report showing same data for all columns created dynamically
body: <p>I have created a telerik report using Visual Studio and set the Datasource from the DataTable. I am creating the columns dynamically at runtime using Telerik.Reporting.TableGroup. Now the problem I am having here is that the report showing the same data for all of the fields and when I debug it is setting different fields for different.</p>
  
  <p>The code I am using is as follows: </p>
  
  <pre><code>private void Report4_NeedDataSource(object sender, EventArgs e)
  {
    DataTable dt = new DataTable();
    dt = SalesReport.reportDataTable;
    table1.DataSource = dt;
  
    Telerik.Reporting.HtmlTextBox textboxGroup;
    Telerik.Reporting.HtmlTextBox textBoxTable;
    table1.ColumnGroups.Clear();
    table1.Body.Columns.Clear();
    table1.Body.Rows.Clear();
    int ColCount = dt.Columns.Count;
  
    for (int i = 0; i &lt;= ColCount - 1; i++)
    {
      Telerik.Reporting.TableGroup tableGroupColumn = new Telerik.Reporting.TableGroup();
      table1.ColumnGroups.Add(tableGroupColumn);
      textboxGroup = new Telerik.Reporting.HtmlTextBox();
      textboxGroup.Style.BorderColor.Default = Color.Black;
      textboxGroup.Style.BorderStyle.Default = BorderType.Solid;
      textboxGroup.Value = dt.Columns[i].ColumnName;
      textboxGroup.Size = new SizeU(Unit.Inch(1.5), Unit.Inch(0.6));
  
      tableGroupColumn.ReportItem = textboxGroup;
      textBoxTable = new Telerik.Reporting.HtmlTextBox();
      textBoxTable.Value = "=Fields." + dt.Columns[i].ColumnName;
      textBoxTable.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
      table1.Body.SetCellContent(0, i, textBoxTable);
      table1.Items.AddRange(new ReportItemBase[] { textBoxTable, textboxGroup });
  
    }
  
  }
  </code></pre>