Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
private void button1_Click(object sender, EventArgs e) { int rowCount = tableLayoutPanel1.RowCount; tableLayoutPanel1.Controls.Add(new TextBox(), 0, rowCount+1 ); // add textbox in column0 tableLayoutPanel1.Controls.Add(new TextBox(), 1, rowCount + 1); // add textbox in column1 tableLayoutPanel1.Controls.Add(new TextBox(), 2, rowCount + 1); // add textbox in column2 tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30)); // 30 is the rows space }
Login to post response