'Arranging controls in Winforms TableLayoutPanel

I'm adding controls to Winforms TableLayoutPanel using panel.Controls.Add(control) at runtime.

I need to arrange the controls in two columns with variable number of rows by first filling the first and then the second column to achieve the following layout:

C1 C4
C2 C5
C3 C6

No matter how I configure the panel it is always populated in the following order:

C1 C2
C3 C4
C5 C6

How can I change the order of control insertion?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source