Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a row to a TableLayoutPanel in C# Windows Form

I am currently developing an application in C# using Windows Forms.

I am using a TableLayoutPanel with two columns. How do I add a new row programatically to the table. I have tried doing a google search, but the only problem is I am only finding adding a new row style which doesn't seem right to me.

like image 408
Boardy Avatar asked Dec 15 '25 10:12

Boardy


1 Answers

Nope that's correct. If you want to add a row you need to use RowStyles.Add().

One easy way of checking this for you self of course is to look at the Form.Designer.cs code.

like image 85
Conrad Frix Avatar answered Dec 16 '25 23:12

Conrad Frix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!