Example 4. Printing a table from left to right with a repeating column
private void Table1_ManualBuild(object sender, EventArgs e)
{
// printing column 0 and all of its rows
Table1.PrintColumn(0);
Table1.PrintRows();
// printing 3 copies of column 1 and all of its rows
for (int i = 0; i < 3; i++)
{
Table1.PrintColumn(1);
Table1.PrintRows();
}
// printing column 2 and all of its rows
Table1.PrintColumn(2);
Table1.PrintRows();
}
In this example, the middle column of the table gets printed 3 times. As a result, we get the following: