Column groups and row groups

{{Unfocused|date=December 2022}}

{{Primary sources|date=December 2022}}

File:Simple Periodic Table Chart-blocks.svg of the chemical elements.]]

In tables and matrices, a column group or row group usually refers to a subset of columns or rows, respectively. Short names or notational names include col group or colgroup, and row group or rowgroup. They can have varying uses depending on context:

  • In mathematics, a partitioned matrix is an interpretation of a matrix as being broken down into submatrices which may be more precisely referred to as a collection of row groups and column groups
  • In web development, colgroup is a standard HTML attribute and an HTML event attribute, for example used for color formatting of entire columns in HTML tables.{{cite web|url=https://www.geeksforgeeks.org/html-colgroup-tag/|title=HTML Tag|website=GeeksforGeeks|access-date=2022-11-30}} The colgroup tag acts as a "parent container of one or more elements".{{cite web|url=https://www.w3schools.blog/colgroup-html|title=Colgroup HTML|website=W3schools|access-date=2022-11-30}} Rowgroup is another HTML attribute.{{cite web|url=https://html.spec.whatwg.org/multipage/tables.html#the-th-element|website=html.spec.whatwg.org|title= Web Hypertext Application Technology Working Group (WHATWG) - HTML Standard |access-date=2022-11-30}}
  • In reporting{{cite web|url=https://learn.microsoft.com/en-us/sql/reporting-services/report-design/filter-group-and-sort-data-report-builder-and-ssrs?view=sql-server-ver16|title=Filter, group, and sort data in paginated reports - Microsoft Report Builder & Power BI Report Builder | Microsoft Learn|website=learn.microsoft.com|access-date=2022-11-30}} (including business reporting, data reporting and financial reporting), colgroups and rowgroups can be used for constructing tables and matrices which dynamically adjusts the size of their columns and rows, respectively, by displaying the set of columns in the colgroup set (which again is a subset of the underlying data).
  • In reporting, colgroups and rowgroups can also be used for grouping of collapsible categories in the presentation of a table{{cite web|url=https://www.ag-grid.com/javascript-data-grid/grouping-group-rows/|title=JavaScript Data Grid: Row Grouping - Group Rows|website=ag-grid.com|access-date=2022-11-30}} (with or without aggregation for the groups{{cite web|url=https://datatables.net/extensions/rowgroup/|website=datatables.net|title= CloudTables - RowGroup |access-date=2022-11-30}}). One example of a use case may be if a table contains a lot of detailed information, but there is a want to display summarizing information of groups in the same table.

See also

References

Category:Matrices (mathematics)

Category:Data modeling

{{matrix-stub}}

{{Database-stub}}