Reports for WinForms | ComponentOne
Working with C1PrintDocument / Tables / User Cell Groups
In This Topic
    User Cell Groups
    In This Topic

    Cells, even cells that are not adjacent to each other in the table, can be united into groups. You can then set styles on all cells in a group with a single command. To define a user cell group:

    1. Create an object of the type UserCellGroup. This class has several overloaded constructors which allow specifying the coordinates of cells to be included in the group (all cells must be added to the group in the constructor).
    2. Add the created UserCellGroup object to the UserCellGroups collection of the table.
    3. Now you can set the style on the group. This will affect all cells in the group.