GN4 supports four row types: First, Last, Even and Odd. First row controls the table header, last row controls the table footer (or the row for totals), and there are optionally even and odd rows too.
It is important to understand that in simple tables, you have to use only settings for Odd rows, and skip settings for first, last and even rows: settings for odd rows cover entire table, if you didn't specify settings for other row types. Similarly, avoid the set values for first and last rows, if you don't need them to be different from other rows.
If you set: |
The result is: |
Odd section only |
All rows in a table will be the formatted in the same way. This covers horizontal rules, margins, fill and vertical justification |
Odd and Even sections only |
There might be difference between odd and even rows (if you set different fill, for instance). The first row will look as odd rows, and last row format is calculated automatically, depending whether it is an odd row or an even row. |
Odd section and First section |
There might be difference between first row and other rows (if you set different fill, for instance). All inner rows will look the same. |
Odd section and Last section |
There might be difference between last row and other rows (if you set different fill, for instance). All inner rows will look the same. |
Odd section, First section, Last section |
There might be difference between first row, last row and other rows (if you set different fill, for instance). All inner rows will look the same. |
Odd section, Even section, First section, Last section |
This is suitable for tables where header, footer and inner rows are all different, and also inner rows are interleaved. |
The control over mentioned row types is performed by check-boxes in the create and in the edit dialog. Use them to set the scope of formatting.
Have in mind that these check-boxes exist under Rules subsection, Margins and Fill subsection, and Justification subsection. If you deselect one or more check boxes in one section, you have to do the same in other sections too.
The table below lists possible combinations:
To have |
Do following |
All rows equal. |
Ensure that only the Odd check box is selected*. In Odd item, enter settings. Do not set anything under First, Even or Last items. The values apply on all rows. |
All rows equal, except the first (header) row that is different. |
Ensure that only Odd and First check-boxes are selected*. In Odd item, enter settings for all rows except for the first row. Under First item, enter the settings for the first row. |
All rows equal, except the last (footer) row that is different. |
Ensure that only Odd and Last check-boxes are selected*. In Odd item, enter settings for all rows except for the last row. In Last item, enter the settings for the last row. |
All rows equal, except the last and first row that are different. |
Ensure that only First, Odd and Last check-boxes are selected*. In Odd item, enter settings for all rows except for the first and last row. In First item, enter the settings for the first row. In Last item, enter the settings for the last row. |
Interleaved rows, no header, no footer. |
Ensure that only Odd and Even check-boxes are selected*. In Odd item, enter settings for odd rows. In Even item, enter the settings for the even rows. The values in Odd item apply also on the first row, and the last row values are automatically calculated, depending if it is even or odd. |
Interleaved rows with header, no footer. |
Ensure that only First, Odd and Even check-boxes are selected*. In Odd item, enter settings for odd rows. In Even item, enter the settings for the even rows. In First item, enter the settings for the first row. The last row values are automatically calculated, depending if it is even or odd. |
Interleaved rows, no header, with footer. |
Ensure that only Last, Odd and Even check-boxes are selected*. In Odd item, enter settings for odd rows. In Even item, enter the settings for the even rows. In Last item, enter the settings for the last row. The values in Odd item apply also on the first row. |
Interleaved rows, with header and footer. |
Select all check-boxes. In Odd item, enter settings for odd rows. In Even item, enter the settings for the even rows. In First item, enter the settings for the first row. In Last item, enter the settings for the last row. The values in Odd item apply also on the first row. |
* Have in mind that mentioned check-boxes exist under Rules subsection, Margins and Fill subsection, and Justification subsection. If you deselect one or more check boxes in one section, you have to do the same in other sections too.