How can I make a control span multiple rows and columns in a TableLayoutPanel?

I like the TableLayoutPanel, I created something similar in 1.1. However is it possible to customise the table layout similar to HTML (i.e. rowspan & colspan). This would be really neat.
[196 byte] By [au55ie] at [2007-12-16]
# 1
When a control is added to a TableLayoutPanel, five extra properties are added to it in the properties window, Cell, Column, ColumnSpan, Row and RowSpan.

ColumnSpan and RowSpan control how many columns and rows the control spans respectively.

DavidM.Kean at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

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?!

OgnjenK at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3

I got the same problem ....

and I found this solution :

Code Snippet

AnyControl yourControl

aTableLayoutPanel.Add(yourControl,x,y) ;

aTableLayoutPanel.SetColumnSpan(yourControl,2) ;

there is also a SetRowSpan function.

hope it'll help someone ....

Binou at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...