I have a TableLayoutPanel starting with two columns and 0 rows. What I need to do is, dynamically adding a row and filling both of the columns with different controls (it wi
Use something like this:
Table.Controls.Add(new Label { Text = "Type:", Anchor = AnchorStyles.Left, AutoSize = true }, 0, 0); Table.Controls.Add(new ComboBox { Dock = DockStyle.Fill }, 0, 1);
You don't need to define number of rows and columns, they will be added automatically.