Skip to content
Bugwise
Menu
UI Components

Data Table

Rows and columns of records that users sort, filter, select and act on. Learn sorting traps (amounts, dates, names, blanks), filters and totals that must agree, selection and bulk actions, tables on small screens, and the accessibility every admin table needs.

40–60 min Content & layout Web · iOS · Android Also called: Table, Data grid, Grid, List view

You run a small bakery and open your invoicing tool to see who owes you money. You click Amount to put the biggest invoices first. €95 is at the top and €12,000 is somewhere in the middle. You filter by Unpaid, and the total at the bottom still shows the sum of every invoice you ever sent. You tick five invoices, change the filter to check something, see two of them left, tap Mark as paid, and all five change.

A data tableData tableRows of records and columns of fields that users scan, sort, filter, select and act on.Open in glossary → looks like a boring grid. Underneath, it’s sorting (by what, exactly?), filtering (and does everything else follow the filter?), selection (which rows does an action really touch?) and layout (what happens to seven columns on a phone?). Each of these is a classic place for bugs, and in admin tools, the bugs move money.

Part Not started

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. 1

    Title and count

    “Invoices · 48”. The count must match the rows, and change with filters.

  2. 2

    Toolbar

    Search, filters and actions such as Export. Filters must be visible, so users know the table is filtered.

  3. 3

    Column header

    Names the column. A sortable header is a button with an arrow and aria-sort.

  4. 4

    Sort indicator

    Shows which column is sorted and in which direction. Only one column at a time, unless multi-sort is supported.

  5. 5

    Select all

    Selects the visible rows. Must say clearly whether it means this page or all results.

  6. 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. 7

    Row actions

    Edit, Download, Delete for one row, often behind a ⋯ menu. Needs an accessible name like “Actions for INV-1041”.

  8. 8

    Footer

    Totals, a summary such as “1–10 of 48”, and pagination. Totals must follow the filter.

Table, list or cards?

PatternBest forWatch out for
Data tableComparing 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
ListOne main line per item (messages, contacts, settings)Hiding fields users need to compare
CardsVisual items (products, recipes), mobile layouts of table dataHard 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

Check this part

  1. When is a data table a better choice than a list of cards?

  2. What does a data grid add to a simple table?

A data table shows records in rows and fields in columns, so users can scan, compare, sort, filter and act on many records at once.

Part Not started

When to use it

  • Many records with the same fields, where users compare values (amounts, dates, statuses).
  • Users need to sort, filter, find and act on records: approve, export, mark as paid, assign.
  • Admin and back-office tools, reports and dashboards, mostly on larger screens.

When not to use it

  • A handful of items with one or two fields: a simple list is clearer.
  • Phones, when there are more than three or four columns: switch to cards or a list that shows the key fields, with details one tap away.
  • Page layout. Using a table to place things side by side breaks screen readers and responsive layouts.
  • Data where the picture matters most (products, recipes, photos): use cards or a grid.

Good and bad uses

Numbers aligned for comparing

Amounts are right-aligned, with the same number of decimals and the currency in the same place. Your eye can compare €95.00 and €12,000.00 instantly.

Numbers aligned like text

Amounts are left-aligned, some with decimals and some without: €95, €1,250.5, €12000. Users misread values by a factor of ten.

Phone: cards with the key fields

On a phone, each invoice becomes a card: customer and amount on the first line, status and date on the second, the rest behind a tap.

Phone: the desktop table, squeezed

Seven columns at 360 px, text cut to “Ac…”, and the Amount column hidden off-screen to the right with no hint that you can scroll.

Filters you can see

Above the table: “Status: Unpaid ✕ · Customer: Acme ✕ · Clear all”. Users always know why they see 3 rows, not 48.

Hidden filters

A filter set last week is still active, invisible, and the user thinks half their invoices disappeared.

Check this part

  1. How should amounts be aligned in a table column?

  2. A table with seven columns needs to work on a 360 px phone. What's usually best?

Use a table for many records with the same fields that people compare and act on; don't squeeze one into a phone or use it for page layout.

Part Not started

How a good table behaves

Sorting uses the real values

The most common table bug: the app sorts what’s displayed (text) instead of what it means (a number, a date). Try it:

↕️ Sort lab

Pick a column, then sort it the naive way (as text) and the right way. Ascending order, smallest first.

  1. €95.00
  2. €1,250.00
  3. €200.00
  4. €12,000.00
  5. €89.90

Unsorted, in the order the server sent them. Try both sort buttons and compare the first and last rows.

What good sorting looks like:

  • Numbers and amounts by value: €95 < €200 < €1,250.
  • Dates by date, whatever the display format (DD/MM/YYYY, “3 days ago”, “Nov 2”).
  • Text alphabetically the way people expect in their language: ignoring case, with accented letters (Ć, Ö, Š) next to their base letter. See also localeLocaleRegional settings that control language and formats for dates, numbers and currency.Open in glossary →.
  • Blanks in one consistent place, usually at the end.
  • One clear indicator: an arrow on the sorted column, the direction obvious, and only one column marked unless multi-sort is supported.
  • Stable ties: rows with the same value (two invoices of €95) keep a predictable order, so they don’t swap places on every click.
  • Sorting the whole data set: with pagination, sorting must happen on the server across all pages, not only on the 20 rows currently loaded.

Everything follows the filter

When a filter or search is active, everything on the screen should describe the filtered rows: the row count, the totals, “Select all”, Export, and the empty state.

  • Count and totals match the visible rows. If a total intentionally covers everything, it must say so (“Total of all invoices”).
  • Search ignores case and extra spaces, and ideally accents: “acme”, “ACME” and ” Acme ” all find Acme Bakery.
  • No results gets a filtered empty state: “No invoices match acme ltd. Clear filters”, not the first-use “No invoices yet” (see Empty and Error States).
  • Filters survive paging, sorting, opening a row and coming back, and ideally live in the URL so they can be shared.

Selection is honest

  • Select all says what it selects: “10 on this page” or “all 48 invoices”. Gmail-style tables offer both: “All 10 on this page are selected. Select all 48”.
  • Hidden selected rows. If rows selected earlier are now hidden by a filter, the table either clears the selection or clearly says “5 selected (3 not shown)”. A bulk action must never silently change rows the user can’t see.
  • Destructive bulk actions confirm with the exact number and what happens: “Delete 5 invoices? This can’t be undone.”
  • After an action, the result is visible: rows update, a toast confirms (“3 invoices marked as paid”), the selection clears.

Big tables and small screens

Check this part

  1. Clicking Amount puts €1,250.00 before €200.00 in ascending order. What's wrong?

  2. A filter shows 3 unpaid invoices, but the footer total sums all 48 invoices without saying so. Is that a bug?

  3. Five invoices are selected, then a filter hides three of them. What must not happen?

Sort by real values, keep everything consistent with the filter, make selection honest about hidden rows, and keep big tables fast and readable on any screen.

Part Not started

Common bugs

#BugWhat you seeTypical severitySeverityHow much damage a bug does to the product or the user.Open in glossary →
1Numbers sorted as text€1,250 before €200; “10 items” before “9 items”Medium–High
2Dates sorted as textSorted by day of month; 2024 mixed into 2025Medium–High
3Sort only the loaded pagePage 1 sorted, page 2 starts with smaller values againHigh
4Case- or accent-sensitive search“acme” misses Acme Bakery; “Ciric” misses ĆirićMedium
5Totals or counts ignore the filter“3 invoices” but “Total €22,270” of everythingHigh
6Wrong empty stateFilter with no results says “No invoices yet. Create your first invoice”Low–Medium
7Selection leaks to hidden rows“Mark as paid (5)” also changes rows hidden by the filterCritical
8Select all is ambiguousSays 10 selected, but Delete removes all 48Critical
9Filters or sort lostBack from a row, paging or refresh resets the viewMedium
10Layout breaksColumns overlap, long names push amounts off-screen, no horizontal scroll hintMedium
11Inconsistent formatsSome amounts with decimals, some without; dates in two formatsLow–Medium
12Export doesn’t match the screenCSV contains all rows, or different columns, or loses the sortMedium–High

Exports have many more traps of their own (encoding, separators, leading zeros, formulas). See File Export and Download.

Find the bug

This invoices table in a small-business admin tool has six bugs. Explore it like a tester:

  • Click Amount and Date, twice each. Read the order carefully.
  • Search for acme, then Acme. Then search for something that doesn’t exist.
  • Change Status to Unpaid and look at the footer.
  • Tick a few rows, change the filter so some of them disappear, then look at the bar and press Mark as paid.

🐞 Bug hunt: Invoices table

This demo has 6 hidden bugs. Explore it like a tester, then check your findings.

Found0/6
books.example.com/invoices

Invoices · 12

Invoices
Status
Acme Bakery€1,250.0002/11/2025UnpaidINV-1041
Blue Fern Studio€95.0028/10/2025PaidINV-1040
Nordlicht Café€200.0015/03/2025OverdueINV-1039
acme bakery (Zagreb)€3,480.5009/10/2025PaidINV-1038
Ćirić & Sons€760.0001/10/2025UnpaidINV-1037
Green Leaf Market€12,000.0030/09/2025PaidINV-1036
Harbor Tools Ltd€89.9021/09/2025OverdueINV-1035
Zeta Print€410.0005/09/2025PaidINV-1034
Müller Werkzeugbau GmbH€2,100.0017/08/2025UnpaidINV-1033
Blue Fern Studio€95.0003/08/2025PaidINV-1032
Olive & Oak€540.0012/07/2025OverdueINV-1031
Acme Bakery€1,250.0001/12/2024PaidINV-1030
12 invoicesTotal €22,270.40

Scroll sideways for Date, Status and Invoice →

  1. 1

    Hint: Click the Amount header and read the order.

  2. 2

    Hint: Click the Date header and look at the years.

  3. 3

    Hint: Search for "acme", then for "Acme".

  4. 4

    Hint: Search for a customer that doesn't exist.

  5. 5

    Hint: Set Status to Unpaid and compare the rows with the footer total.

  6. 6

    Hint: Select a few rows, change the Status filter so some disappear, then press Mark as paid.

Check this part

  1. Searching for "acme" doesn't find "Acme Bakery". What kind of bug is this?

  2. Why is "Select all says 10, but Delete removes 48" usually critical?

Text sorting of numbers and dates, case-sensitive search, totals that ignore filters, wrong empty states, selection that leaks to hidden rows, and broken layouts.

Part Not started

How to test it

Start without any tools. Find a screen that uses this component and use it the way a real user would: slowly, then fast, then in ways nobody planned for. Tick off the checklist as you go. Most of it needs only your eyes and your fingers.

Then try the example test cases. Some of them need a little setup:

  • A screen reader: VoiceOver on iPhone, TalkBack on Android. Both are in the phone’s Accessibility settings. See Mobile accessibility.

New to this? Do the checklist first and skip any test case whose setup you don’t know yet. The Tools list after the test cases shows how to do the trickier steps.

Checklist

Data table test checklist

0 of 17 checked

Example test cases

TC-TBL-001Amount column sorts by value

Preconditions

  • Invoices with amounts €89.90, €95.00, €200.00, €1,250.00, €12,000.00

Steps

  1. Open Invoices
  2. Click the Amount header
  3. Click it again

Expected result

First click: €89.90 … €12,000.00 (or the documented default direction). Second click: the reverse. The arrow and the screen reader announcement match the direction.

TC-TBL-002Date column sorts across years

Preconditions

  • Invoices dated 01/12/2024, 15/03/2025, 02/11/2025

Steps

  1. Click the Date header to sort newest first

Expected result

02/11/2025, then 15/03/2025, then 01/12/2024. The day of the month does not decide the order.

TC-TBL-003Search ignores case and spaces

Steps

  1. Search for "acme"
  2. Search for "ACME"
  3. Search for " Acme "

Expected result

All three searches show the same invoices for Acme Bakery.

TC-TBL-004Totals follow the filter

Steps

  1. Set Status to Unpaid
  2. Add the visible amounts by hand (or in a spreadsheet)

Expected result

The row count and the footer total match the visible unpaid invoices.

TC-TBL-005Filter with no results

Steps

  1. Search for "zzzz"

Expected result

"No invoices match zzzz" with a Clear search action. Not the first-use empty state.

TC-TBL-006Bulk action after filtering does not touch hidden rows

Steps

  1. Select one Unpaid and one Overdue invoice
  2. Set Status to Unpaid
  3. Click Mark as paid

Expected result

Either the selection was cleared by the filter, or the bar says "2 selected (1 not shown)" and asks before changing the hidden invoice. The Overdue invoice is not changed silently.

TC-TBL-007Select all on a paginated table

Preconditions

  • 48 invoices, 10 per page

Steps

  1. Tick Select all
  2. Read the selection bar
  3. Click Delete

Expected result

The bar says "10 selected" and offers "Select all 48". The confirmation states the exact number that will be deleted.

TC-TBL-008Export matches the screen

Steps

  1. Filter by Unpaid and sort by Amount, descending
  2. Click Export CSV
  3. Open the file

Expected result

The file has the same rows, in the same order, with the same columns and amounts as the screen. Accented names (Ćirić) display correctly in Excel.

Tip: click a test case to expand it.

Tools

Check this part

  1. What's the fastest way to check that a table's sorting and totals are right?

  2. Which test data is most likely to expose sorting bugs?

A checklist, example test cases and tools: sort every column type, combine filters with everything else, test selection across filters and pages, and compare exports with the screen.

Part Not started

Accessibility

Mobile vs web

  • iPhone apps rarely show multi-column tables. Data appears as lists with the key fields, a detail screen, and swipe actions for row actions. iPad apps may show real multi-column tables.
    Dev note
    SwiftUI List on iPhone; Table with sortable columns on iPadOS and macOS (it collapses to a single column in compact width).
  • Check Edit mode (multi-select) for bulk actions: the selection count, Select all, and what happens when you leave Edit mode.
  • Check Dynamic TypeDynamic TypeThe phone setting that lets users make text bigger or smaller across apps.Open in glossary → at the largest sizes: does the amount still fit, or get cut to “€1,2…”?
  • Phone apps show lists or cards; tablets and Chromebooks may show tables.
    Dev note
    RecyclerView or a Compose LazyColumn for lists; tables are usually custom-built, so accessibility labels and sort state need extra checking.
  • Long-press usually starts multi-select with a contextual action bar: check the count, Select all and Back (which should clear the selection, not leave the screen).
  • Rotate with a filter, sort and selection active: does everything survive? Try Don’t keep activities too.
  • Font size and display size at maximum: does the layout still work?
  • The web is where real tables live. Test at 1280, 768 and 360 px: what happens to the columns? Is there horizontal scroll, and is it obvious?
  • Sort, filter and page belong in the URL (?status=unpaid&sort=-amount&page=2) so Back, refresh and shared links keep the view.
  • Copy and paste: selecting cells and pasting into a spreadsheet should give columns, not one long line.
  • Ctrl+F on a virtualized table finds only rendered rows; the table’s own search must cover the rest.
  • Print and Export: wide tables are often cut off on paper; exports must match the screen.

Check this part

  1. Why should a data table be built with real table markup?

  2. What should a screen reader say on a sorted column header?

Real table markup with headers, announced sort state, labeled checkboxes and row actions, keyboard access and readable zoom, plus how tables appear on iOS, Android and the web.

Key takeaways

  • A data table shows records in rows and fields in columns so users can compare, sort, filter and act on many records at once. On phones it usually becomes a list of cards.
  • Sorting must use real values: numbers by value, dates by date, text the way people read it, blanks in one place, and across all pages.
  • Everything follows the filter: counts, totals, Select all, Export and the empty state.
  • Selection must be honest: say whether Select all means this page or everything, and never let a bulk action silently change hidden rows.
  • Keep formats consistent, numbers right-aligned, long text readable, and narrow screens usable.
  • Test with trap data (9/10/100, dates across years, lowercase and accented names, blanks) and use a spreadsheet as your oracle.
  • Accessibility: real table markup, announced sort state, named checkboxes and row actions, keyboard access, and status that isn’t only color.

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.