What is it?
A data tableData tableRows of records and columns of fields that users scan, sort, filter, select and act on.Open in glossary → shows records in rows and fields in columns: invoices, orders, users, transactions, test runs. Users scan it, compare values down a column, sort and filter it, select rows and act on them.
You’ll meet tables everywhere testers work: admin panels, back-office tools, banking and accounting apps, CRMs, analytics dashboards, and in tools like Jira and TestRail themselves. On phones, the same data usually appears as a list of cards instead.
Anatomy
An invoices table in a small-business admin tool
- 1
Title and count
“Invoices · 48”. The count must match the rows, and change with filters.
- 2
Toolbar
Search, filters and actions such as Export. Filters must be visible, so users know the table is filtered.
- 3
Column header
Names the column. A sortable header is a button with an arrow and aria-sort.
- 4
Sort indicator
Shows which column is sorted and in which direction. Only one column at a time, unless multi-sort is supported.
- 5
Select all
Selects the visible rows. Must say clearly whether it means this page or all results.
- 6
Row and cells
One record per row. Numbers right-aligned with the same decimals; long text truncated with a way to read it.
- 7
Row actions
Edit, Download, Delete for one row, often behind a ⋯ menu. Needs an accessible name like “Actions for INV-1041”.
- 8
Footer
Totals, a summary such as “1–10 of 48”, and pagination. Totals must follow the filter.
Table, list or cards?
| Pattern | Best for | Watch out for |
|---|---|---|
| Data table | Comparing many records across the same fields; sorting, filtering, bulk actionsBulk actionAn action applied to several selected items at once, like Delete, Archive or Mark as paid.Open in glossary → | Too many columns on small screens; tiny targets |
| List | One main line per item (messages, contacts, settings) | Hiding fields users need to compare |
| Cards | Visual items (products, recipes), mobile layouts of table data | Hard to compare values across cards; no column sorting |
A data grid is a table with spreadsheet-like powers: editable cells, resizable and reorderable columns, frozen columns, keyboard navigation from cell to cell. It has all the table bugs plus the bugs of a form.
Designs & variants
- Read-only table: a simple report. Still needs correct alignment, formats and totals.
- Sortable columns: click a header to sort, click again to reverse. Sometimes a third click removes sorting.
- Filterable: a search box, filter dropdowns or chipsChipA small interactive element for a filter, an entered value, a suggestion or an action.Open in glossary → above the table, or filters inside the column headers.
- Selectable rows with a checkbox column, select all, and a bulk action bar (“3 selected · Mark as paid · Delete”).
- Expandable rows: a row opens to show details below it, like an accordionAccordionStacked headers that expand to show or hide their content.Open in glossary → inside the table.
- With pagination (see Pagination), “Load more”, or virtual scrolling for very long tables (virtualization (lists)Virtualization (lists)Rendering only the list rows near the screen to keep very long lists fast.Open in glossary →: only the rows on screen are rendered).
- Sticky header and first column: the header stays visible while scrolling down, the first column while scrolling sideways.
- Density options: compact, default and comfortable row heights.
- Inline editing: click a cell to edit it, as in a spreadsheet.
Check this part
When is a data table a better choice than a list of cards?
What does a data grid add to a simple table?