ColumnSpan and RowSpan control how many columns and rows the control spans respectively.
But, how tou can set columnspan in runtime
I can add controls on specific cell in TableLayoutPanel with
TLPanel.Controls.Add(mylabel(i, j), col, row), but how to set a columnspan?!
I got the same problem ....
and I found this solution :
AnyControl yourControl
aTableLayoutPanel.Add(yourControl,x,y) ;
aTableLayoutPanel.SetColumnSpan(yourControl,2) ;
there is also a SetRowSpan function.
hope it'll help someone ....