Tables

Repeating table header rows

SmartPaginator provides support for repeating table header rows. To set up repeating header rows, use the TableExtensions.HeaderRowCount property as follows:

    <Table s:TableExtensions.HeaderRowCount="1">
        <Table.Columns>
            <TableColumn/>
            <TableColumn/>
            <TableColumn/>
            <TableColumn/>
        </Table.Columns>

        <!-- This TableRowGroup hosts a header row for the table. -->
        <TableRowGroup>
            <TableRow>
                <TableCell/>
                <TableCell>
                    <Paragraph>Gizmos</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>Thingamajigs</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>Doohickies</Paragraph>
                </TableCell>
            </TableRow>
        </TableRowGroup>

        <!-- This TableRowGroup hosts the main data rows for the table. -->
        <TableRowGroup>
            <TableRow>
                <TableCell>
                    <Paragraph Foreground="Blue">Blue</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>1</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>2</Paragraph>
                </TableCell>
                <TableCell>
                    <Paragraph>3</Paragraph>
                </TableCell>
            </TableRow>
            ...
        </TableRowGroup>
    </Table>

The default value for TableExtensions.HeaderRowCount is 0, which means there are no header rows in the table. When this value is set to different value, the first X rows in the table will be repeated in every page, where X equals the value of the HeaderRowCount property.

Last edited Jan 2, 2012 at 3:27 AM by fallinor, version 1

Comments

No comments yet.