Example 2. Printing the table from top to bottom with a repeating row |
Top Previous Next |
private void Table1_ManualBuild(object sender, EventArgs e) { // Printing row 0 and all of its columns Table1.PrintRow(0); Table1.PrintColumns();
// Printing 3 copies of row 1 and all of its columns for (int i = 0; i < 3; i++) { Table1.PrintRow(1); Table1.PrintColumns(); }
// printing row 2 and all of its columns Table1.PrintRow(2); Table1.PrintColumns(); }
In this example, the middle row gets printed 3 times. As a result, we get the following:
|