title: Can't add duplicate row to the asp.net Table Control
body: <p>I have an asp.net table control like this:</p>
  
  <pre><code>  TableHeader
  A Text | Textbox
  </code></pre>
  
  <p>What I want to do is, in the page_load event, duplicate second row with all the controls within it, change the text in the first cell and add as a new row. So here is my code:</p>
  
  <pre><code>        for (int i = 0; i &lt; loop1counter; i++)
          {
              TableRow row = new TableRow();
              row = myTable.Rows[1]; //Duplicate original row
              char c = (char)(66 + i);
              if (c != 'M')
              {
                  row.Cells[0].Text = c.ToString();
                  myTable.Rows.Add(row);
              }
          }
  </code></pre>
  
  <p>But when I execute this code it justs overwrites on the original row and row count of the table doesn't change. Thanks for help....</p>