> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tablepro.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Grid

> Sort, size, hide, highlight, chart, map and copy the rows a table or a query puts in the grid

Most of the grid's controls sit in the status bar beneath it. The view switcher is at the leading edge, followed by the row count and, while cells are selected, their [sum](#selection-summary). The columns, highlight, [auto refresh](#auto-refresh), filter and page buttons sit at the trailing edge.

A narrow window trims that bar rather than cutting it off. The Columns, Auto Refresh and Filters buttons drop their titles first, and **First** and **Last** leave with them; the Query menu still carries all four page commands. Narrower still, the view switcher becomes a pull-down naming the current mode and rows-per-page moves into the page indicator's menu. Everything else keeps its place.

![Data grid](https://mintcdn.com/ngquct/tXWaltqW4Zqkau0T/images/data-grid.png?fit=max\&auto=format\&n=tXWaltqW4Zqkau0T\&q=85\&s=15662fff8fc9ceffbafd658e074f5b62)

Data grid with query results

## Sorting

Click a header to sort by that column, and click it again to reverse the order. `Option`-click another header to add it as a further sort key, or `Option`-click a key already in the sort to reverse that one alone. A plain click always starts over with the column you clicked. Sorting re-runs the query with a new `ORDER BY`, so it orders the whole table rather than the page in front of you. In a query tab that query is the one statement behind the result, never the rest of the script.

The arrow marks the first sort key. With more than one key, point at a header to see where that column falls in the order. **Don't Sort** in the header menu returns to the server's order and stays there.

A Cassandra, ScyllaDB or Bigtable table has no header sort, and a query result there sorts the rows it holds. See [Cassandra](https://docs.tablepro.app/databases/cassandra.md#browsing-and-editing) and [Bigtable](https://docs.tablepro.app/databases/bigtable.md#browsing-tables).

**Sort direction** in [Settings > Data](https://docs.tablepro.app/customization/data-settings.md) decides which way that first click goes. It is Ascending out of the box; set it to Descending to open on the newest rows and reach them in one click.

A table opens sorted by its primary key, so each page continues where the last one ended. A table with no primary key opens in the server's order. Set **Default sort** to **First column**, or to **No sorting (engine order)** to keep the server's order everywhere. A sort the setting applies carries the same arrow as one you clicked, and clicking that header reverses it.

> [!WARNING]
>
> Sorting on a `BLOB`, `JSON`, or spatial column the server cannot order on fails the query. Sort on another column, or set **Default sort** to **No sorting (engine order)**.

## Filtering

The header menu carries two filters that answer different questions.

| Header menu item | What it filters |
| - | - |
| **Filter Values…** | The rows already loaded, without a re-query. A filtered column shows a funnel after its name |
| **Filter with column** | The whole table. It adds a row to the [filter bar](https://docs.tablepro.app/features/filtering.md) and opens it |

The cell menu has a third: **Filter** turns the clicked cell's value into a condition such as `status = “paid”` and runs it against the whole table. [Filter by cell value](https://docs.tablepro.app/features/filtering.md#filter-by-cell-value) lists what it offers.

**Filter Values…** lists every value in the column with its count, NULL and empty among them. Select the values to keep and click **Apply**. To keep one value out of hundreds, type part of it in the search field and press `Return`: the search selects every value that contains what you typed and leaves out the rest, so `paid` keeps `unpaid` too. **Select All Results** selects or deselects only the values found, and clearing the search brings back what was selected before it. Filter several columns and a row has to match all of them; **Clear Value Filter** and **Clear All Value Filters** are on the same menu.

![Value filter popover](https://mintcdn.com/ngquct/sezpSJY0oLylJ5LP/images/value-filter-popover.png?fit=max\&auto=format\&n=sezpSJY0oLylJ5LP\&q=85\&s=4b92d76544722f575830fe37a8ee6ec5)

Filter a column by its values

A value filter stays until you clear it or the tab shows something else: another table, a query you run, or another result. Saving, `Cmd+R`, sorting, paging, the filter bar and **Fetch All** keep it and apply it to the rows they load. Hiding a filtered column keeps it filtered. Edit a cell so its row no longer matches and the row stays where it is until the rows load again. The filter also runs again when you change it or the column's display format.

## Highlighting

Right-click a cell and open **Highlight**. A color under **Rows Where status = “paid”** tints every row holding that value; a color under **Cells Where status = “paid”** tints only that cell. The palette marks the color a matching rule already uses, and **Remove Highlight** takes the rule away.

For anything other than an exact match, click the highlighter button in the status bar or choose **View > Highlight Rules**. A rule is a column, an operator from the [filter bar](https://docs.tablepro.app/features/filtering.md), a value, a color, and **Row** or **Cell**. **Highlight Values…** in the header menu starts a rule on that column. A rule left without a value is dropped when the popover closes. A rule is marked in the popover, and colors nothing, when its column is not in this result or when its regular expression will not compile.

![Highlight Rules popover listing three rules over an Invoice grid with tinted rows and cells](https://mintcdn.com/ngquct/_3mjem21wffMbVsd/images/highlight-rules.png?fit=max\&auto=format\&n=_3mjem21wffMbVsd\&q=85\&s=ec46d3959a78c4953336b81f9a68e291)

US invoices in green, Canadian in blue, and customer IDs under 10 in orange

Rules run top to bottom and the first match colors the row, so drag the rule that should win to the top. A new rule picked from the cell menu goes in first. Picking a color for a rule that is already in the list changes its color and leaves it where it is. A cell rule tints its own cell over the row's color. Rules read the stored value rather than the text a **Display As** format shows: a numeric column compares as numbers, a boolean column accepts `true`, `1`, `t` and `yes` alike, and `NULL` never satisfies a comparison: match it with **is NULL** or **is empty**.

A row waiting to be inserted or deleted keeps its [change tracking](https://docs.tablepro.app/features/change-tracking.md) tint over any rule, and a selected row shows the selection. On a table you edit, give row rules a color other than the green and red those tints use, so a highlight never reads as a pending change.

Rules belong to the table, scoped to the connection, database, and schema, and follow the table through a rename. A query result that comes from one table uses that table's rules. Rules on any other query result are not saved, and go when the tab closes or the app quits. Saved rules stay on this Mac and do not sync.

## Columns

Drag a border to resize a column, or double-click it to fit the content; **Size to Fit** and **Size All Columns to Fit** on the header menu do the same. A fitted column stops at half the visible grid width.

Point at a header for the column's type and, with **Show comments** on in [Sidebar & Tabs settings](https://docs.tablepro.app/customization/sidebar-and-tabs.md#objects), its comment.

Hide columns from the columns button in the status bar or from the header menu. A hidden column is not fetched, so hiding a large one makes the table load faster; the primary key and the sorted column are fetched either way. On a schemaless store the popover lists every field the grid can draw, including ones that turn up only in later documents.

Widths, order, hidden and frozen columns are remembered per table, scoped to the connection, database, and schema; **Reset Columns** in the popover puts them back. Right-click a header and choose **Display As** to read a column's stored values in a different form; [Cell and Row Viewers](https://docs.tablepro.app/features/json-viewer.md) lists the formats.

### Wrap text

Choose **View > Wrap Text**, or **Wrap Text** on the header menu, to show long values on several lines. A row grows to fit its tallest cell, up to 10 lines; a value that needs more ends in an ellipsis. A line break stored in the value starts a new line. With wrap off, every row is one line and a line break shows as a space.

![Notes table with Wrap Text on: long body values run over several lines and short rows stay one line](https://mintcdn.com/ngquct/n855SUkV2sGdDYkh/images/data-grid-wrap-text.png?fit=max\&auto=format\&n=n855SUkV2sGdDYkh\&q=85\&s=2136a1606656a48b2342081fe2c0c4f9)

Rows grow to fit wrapped values

Wrap applies to the whole grid of one tab, in tables, views and query results, and is saved with the tab. **Wrap text in cells** in [data settings](https://docs.tablepro.app/customization/data-settings.md) sets it for new tabs.

### Freeze columns

Right-click a column's header and choose **Freeze Up to This Column** to hold it and every column before it beside the row numbers. The rest scroll under them, and a line marks where the frozen columns end. Select, copy, edit, find and jump to a frozen column as to any other. **Unfreeze Columns** on the header menu lets them scroll again.

Frozen columns cover at most two thirds of the grid's width. The menu item is dimmed for a column that would freeze more, and frozen columns that no longer fit after the window narrows scroll until it widens again. Sort, resize and reorder frozen columns from their own headers at any scroll position. A drag keeps a column on its side of the line, so freeze or unfreeze to move one across. On a query result they stay frozen until the tab closes or the app quits.

### Large values

On PostgreSQL, MySQL, MariaDB and SQLite, a text, JSON, XML or binary value larger than the connection's limit stays on the server until you need it, in any table with a primary key. A text or JSON cell shows its first 256 characters in italics, ending with an ellipsis; a binary cell, or any cell in a masked column, shows the value's size, such as *5.2 MB*. On PostgreSQL, MySQL and MariaDB, a column whose declared size fits under the limit, such as `varchar(255)`, always loads whole. Set the limit with **Large Value Limit**, under **Table Data** on the connection editor's [Advanced](https://docs.tablepro.app/connections/connection-form.md#advanced) pane; it is 64 KB until you change it.

The value is read by its primary key when you open the cell, copy it, show its row in the inspector with one row selected, duplicate the row, list the column's values with **Filter Values…**, or export the rows with **Export Results…**. **File > Export** reads every value as before. Set NULL, paste and **Fill Column** read the value first, so undo puts it back. A table without a primary key, a sorted column and a column under a value filter load every value with the page.

Find and the selection summary skip a value until it loads, and the JSON view shows it as *Not loaded* with its size. Deleting a row whose value never loaded saves normally, but [Data Rewind](https://docs.tablepro.app/features/change-tracking.md#restoring-a-save) cannot put that row back.

### Jump to a column

`Cmd+Shift+J`, or **Edit > Find > Jump to Column**, lists every column of the result with its type and its place in the grid. Type part of a name; matching is fuzzy, so `crat` finds `created_at`. `Return` scrolls the selected column into view and puts the cell cursor in it, on the selected row. A hidden column is listed too, marked **Hidden**, and jumping to it shows it first. **Jump to Column** at the foot of the columns popover opens the same panel with the popover's search carried over.

![A floating panel over the data grid listing columns with their types and positions](https://mintcdn.com/ngquct/cl5E1eP32xHFtrwD/images/column-jump.png?fit=max\&auto=format\&n=cl5E1eP32xHFtrwD\&q=85\&s=27619ae8a63ca853fbfec698f1dd4d60)

Jump to Column ranking a fuzzy match

## Foreign keys

A foreign key cell carries an arrow on its right edge. Click it to open the referenced table filtered to the matching row, or right-click for **Preview Referenced Row**, which shows that row in a popover. The reference arrives in a tab of its own, so the rows you were reading stay open behind it. A tab already showing that same reference comes forward instead of a second one opening, and `Cmd`-click opens a new tab even then.

Clicking an arrow that points back into the table the tab already shows re-filters that tab rather than opening another. `Ctrl+Cmd+[` returns to the rows it left.

Double-click a foreign key cell, press `Return` on it, or open its right-click menu to pick the key rather than type it. The picker lists rows from the referenced table, each key with a label beside it, and narrows as you type. `Return` in the search field commits the text as typed, which covers a key the search has not turned up. **Set NULL** appears on a nullable column.

**Label** at the foot of the picker opens the referenced table's columns. Tick one or several: a parent whose rows are unique only on `descrizione` and `marchio` together reads as six identical rows under either column alone. Ticked columns show beside the key in the table's own order, and the search matches any of them. **None** clears them and lists keys on their own. A date or a number shows beside the key but carries no text search, so a picker with no text column to search says so rather than reporting no matches. The choice is remembered for the referenced table, so every column pointing at it shows the same ones. A search fetches the first 50 matches, which keeps the list quick on a large table.

A column of a foreign key that spans several columns keeps the text editor. The picker sets one column, and a key it offered might not pair with the values the row holds in the constraint's other columns. Type the key, or open the referenced table and read the pair off it.

![Foreign key value picker listing employee ids with a last and first name beside each](https://mintcdn.com/ngquct/EivN70PT-R8AaEtI/images/fk-value-picker.png?fit=max\&auto=format\&n=EivN70PT-R8AaEtI\&q=85\&s=b9cc42d2361cb4ad36c5da8bddb84471)

Two label columns, so every employee reads as a name

The inspector's **JSON** view follows a key without leaving the row: see [Row as JSON](https://docs.tablepro.app/features/json-viewer.md#row-as-json).

Step back with **View > Back** (`Ctrl+Cmd+[`) and **View > Forward** (`Ctrl+Cmd+]`), or with the same pair under **Actions** in the toolbar. Add the buttons to the toolbar with [Customize Toolbar](https://docs.tablepro.app/features/connection-window.md#add-a-control-back) to keep them in reach. Back restores the table you came from as you left it: same filters, sort, page, and selected row. Each tab keeps its own history and Back never closes a tab. With unsaved edits in the tab, Back asks to discard them first; with a staged structure edit it stands down, because that work cannot be discarded from here.

![Foreign key lookup](https://mintcdn.com/ngquct/tXWaltqW4Zqkau0T/images/fk-lookup-popover.png?fit=max\&auto=format\&n=tXWaltqW4Zqkau0T\&q=85\&s=3befc8c83d017031f38134238e8a4d97)

Foreign key lookup

## Inspector

Press `Cmd+Option+I`, or click the button at the trailing end of the toolbar, to open the inspector beside the grid. The table and which row of how many is selected sit under the [pane's header](https://docs.tablepro.app/features/connection-window.md#the-trailing-pane), and **Fields** and **JSON** are the two renderings of that row, picked from the header's ellipsis menu. [Cell and Row Viewers](https://docs.tablepro.app/features/json-viewer.md) covers both. Turn on **Show inspector when a row is selected** in [Settings > Data](https://docs.tablepro.app/customization/data-settings.md) to open it whenever a row is picked, in a query result as well as a table.

Short values sit on one line, label leading and value trailing. Long text, JSON, PHP, binary and images take the full width. Long text and JSON carry a resize handle; PHP, binary and images draw at a fixed height. `Tab` and `Shift+Tab` move between fields; the menu at the trailing edge of each field carries the same values as [Set Value](https://docs.tablepro.app/features/change-tracking.md#editing-a-cell): **Set NULL**, **Set DEFAULT**, **Set EMPTY**, **Generate UUID** and **Generate UUIDv7** where the column takes them, and **SQL Functions** with the date and time functions that fit it. `Ctrl+Option+N` and `Ctrl+Option+D` set NULL and DEFAULT. With several rows selected, Generate UUID gives each row its own value. Search filters the list by column name or stored value, and the pencil button narrows it to fields already edited.

With no row selected and a table open, the inspector shows that table's size, row count, engine, collation and timestamps, as far as the database reports them. They are read only while the inspector is open. **Engine** is the table's own storage engine or access method, such as InnoDB, MergeTree or heap.

Under **Server**, **Version** names the server the connection reached, such as PostgreSQL 17.2, or MariaDB 11.4.5 on a MySQL connection. Hover it for the full string the server sent. A SQLite file or a local DuckDB database shows **Library** instead, with the version TablePro runs. A query tab shows the same section above **No Row Selected**.

![Inspector listing a row's columns beside a data grid](https://mintcdn.com/ngquct/tXWaltqW4Zqkau0T/images/cell-inspector.png?fit=max\&auto=format\&n=tXWaltqW4Zqkau0T\&q=85\&s=e73717b92bc40d47fe66802c457e11e5)

A Track row with its scalar columns on one line each

## Find in the loaded rows

Press `Cmd+F` to open the find bar above the grid that has focus, or `Cmd+Option+F` to open it with a replace field. The first match after the cell cursor becomes the selected cell, so `Cmd+C`, `Return` and the arrow keys act on it. `Return` and `Cmd+G` step forward, `Shift+Enter` and `Cmd+Shift+G` step back, and `Escape` closes the bar and hands the keyboard back to the grid. `Cmd+E` searches for the value of the selected cell. Query results and the Structure lists have the same bar. In a query tab, click into the result first: with the editor focused, `Cmd+F` searches the SQL.

Matching runs over the text as displayed and ignores case and accents. The options menu beside the field turns on **Match Case**, **Whole Words** and **Regular Expression**, each of which matches accents exactly, and **Search In** limits the search to one column. Spatial columns are skipped, and so is a binary column still showing hex. The counter says which rows were searched:

| What you see | What it means |
| - | - |
| `3 of 12` | Every row is loaded, so this is the whole table |
| `3 of 12 on this page` | More rows exist that were never fetched |
| `No matches` | Every row is loaded and none match |
| `Not on this page` | None of the loaded rows match, and more rows exist |

When none of the loaded rows match and more rows exist, or the page holds [large values](#large-values) still on the server, **Search All Rows** in the bar turns the term into a filter that runs at the database, covering the whole table. It replaces the tab's filters, so it appears only when none are applied; with a filter set, add the term to the filter bar instead. Cassandra and ScyllaDB cannot match any one of several columns, so it never appears there.

In an editable table, select **Replace** in the bar to show the replacement field. **Replace** changes the current match and moves to the next; **Replace All** changes every match in the loaded rows as one step, so one `Cmd+Z` puts all of them back, and the bar says how many cells changed. With a regular expression, `$1` in the replacement inserts the first capture group. Replace works on the stored value, so a match that exists only in a **Display As** form is left alone, and so is a cell you could not type into. Replacements wait in the queue like any edit until you save.

## Pages and row counts

A table tab pages. The status bar offers 5, 10, 20, 100, 500 or 1,000 rows per page, **Custom…** up to 1,000,000, and **All rows…**, plus First, Previous, Next and Last; `Cmd+[` and `Cmd+]` step pages, and clicking the page indicator (`3 / 12`) jumps to a page number. In a narrow window that indicator is a menu carrying **Go to page…** and the row-count choices together. The size a table opens with is a [data setting](https://docs.tablepro.app/customization/data-settings.md).

A large table shows an estimated total prefixed with `~` instead of running a slow `COUNT(*)`. **Count Exactly** beside it runs the real count in the background, and `Cmd+.` cancels that. While a total is an estimate, **Last** and **All rows…** stay unavailable and **Next** works as long as the last page came back full.

Cassandra, ScyllaDB, Bigtable and the Firebase Realtime Database have no estimate, and their count reads every partition or key, so a table there shows no total until you click **Count Exactly**.

A query tab does not page, and the Query menu's page commands are unavailable there. It stops at the [row cap](https://docs.tablepro.app/customization/data-settings.md) instead and offers **Fetch All** to load the rest, and a query carrying its own `LIMIT`, `FETCH FIRST`, or `TOP` is never capped. `Cmd+.` cancels a running query or a Fetch All.

Some engines cannot skip rows and return a fixed maximum from one query. On those, a table tab shows its leading rows only: First, Previous, Next, Last and **All rows…** are gone, the rows-per-page menu stops at the engine's maximum, and the total is counted only when you click **Count Exactly**. Filter or sort to decide which rows load. [Cloudflare R2 SQL](https://docs.tablepro.app/databases/cloudflare-r2-sql.md#pagination) works this way.

## Reloading

`Cmd+R` reads the rows again and leaves the grid where it was. Scrolled down, the row at the top stays at the top, matched by primary key, so a row another session added takes its sorted place without moving what you are reading. At the top of the grid, the grid stays at the top and rows added above come into view. On a table without a primary key, or with a key that repeats, the scroll position holds instead. Selected rows stay selected, matched by primary key; on a table without one, the selection clears.

On a table tab, sorting, filtering, and changing page or page size start at the first row. The horizontal scroll position stays.

Saving edits, importing rows, **Insert Document…**, a structure change and **Refresh Materialized View…** reload every tab showing the table they changed, in every window of the connection. The tab in front reloads at once and keeps its place. A tab behind it reloads when you switch to it. A tab with a cell open or unsaved edits is not interrupted. It reloads as soon as the cell is closed and its edits are saved, undone or discarded. Tabs on other tables stay as they are. A SQL file import reaches every table tab of the connection the same way. A statement run from the SQL editor reloads nothing, so press `Cmd+R` on the tabs it touched.

When another session changes a table's columns or primary key after the schema loaded, the first page of that table can open with the old structure: a new column missing while some columns are hidden, or rows sorted by the old key. A bar over the grid then names the table. Click **Reload** to read the page again with the current columns and the sort they give, or close the bar to keep the rows as they are. Nothing reloads by itself. When the old structure makes the page fail, the bar shows under the error.

![A bar above the shot\_orders grid says its structure changed and offers Reload](https://mintcdn.com/ngquct/x-_R_DA-4S93Lk2b/images/outdated-page-notice.png?fit=max\&auto=format\&n=x-_R_DA-4S93Lk2b\&q=85\&s=48f11611f38be03eb1af9230a1bd9628)

The primary key moved from id to code after the schema loaded

### Auto Refresh

To watch a table change, click the clock button in the status bar, or open **Database > Auto Refresh**, and pick **Every 5 Seconds**, **Every 10 Seconds**, **Every 30 Seconds**, **Every Minute** or **Every 5 Minutes**. **Off** stops it. Each refresh reads the rows the way `Cmd+R` does and keeps your place, but leaves the row count as it was and adds nothing to [query history](https://docs.tablepro.app/features/query-history.md). `Cmd+R` recounts and starts the wait over.

Each table tab keeps its own interval, and only the tab in front refreshes. The interval is not saved: opening another table in the tab, closing the tab or quitting turns it off. Query tabs have no Auto Refresh, and the button shows only in **Data** view.

A refresh never asks or interrupts. It waits for the next interval while:

* the table has unsaved changes, or a cell is being edited
* rows are loading
* the connection is down
* a transaction is open on the tab's database
* rows are selected in a table without a primary key
* the tab is not the one in front, or its window is not on screen
* the tab is in another view mode, you are scrolling or dragging a selection, or a value viewer or value filter is open

For the first five, the clock button's tooltip names the reason. Another app in front does not stop it while the window stays on screen. A refresh that fails turns Auto Refresh off and leaves the error in the tab.

## Copying

Click a cell to select its row and put the cell cursor on that cell. Drag or `Shift`-click for a range of cells, and `Cmd`-click to add or remove a cell. Click a row number to select a whole row; drag down the row numbers, or `Shift`-click or `Cmd`-click them, for several. `Cmd+A` selects every row and leaves no cell cursor. `Escape` shrinks a range of cells to the cursor's row, and a second `Escape` clears the selection.

For a whole column, `Cmd`-click its header or right-click the header and choose **Select Column**; `Cmd`-`Shift`-click another header to take every column between the two. A plain click on a header sorts. The row numbers stay at the left edge on a table wider than the window, so whole rows are still selectable when the columns have scrolled past them. `Shift+Space` widens whatever is selected to every row it touches.

The selection draws in your Accent color, or in the theme's selection color when it sets one, and the cell the cursor is on carries a focus border. A right-click never changes the selection: inside it, the menu acts on the whole selection; outside it, on the cell or row you clicked.

After a plain click on a cell, `Cmd+C` copies the value of the cell under the cursor. Rows selected by their row numbers or with `Cmd+A` copy in the **Copy rows as** format from [Settings > Data](https://docs.tablepro.app/customization/data-settings.md#copying). A range of cells copies as tab-separated cells.

| Shortcut | Copies |
| - | - |
| `Cmd+Shift+C` | The selected rows as TSV |
| `Cmd+Option+C` | The same, with a header row |
| `Cmd+Option+J` | The selected rows as JSON |

**Copy rows as** offers TSV, TSV with Headers, JSON, CSV, CSV with Headers and Markdown. Whatever the format, `Cmd+V` in a table pastes the copied rows, not the text. To copy one value out of a selection, choose **Edit > Copy Special > Copy Cell Value** for the cell the cursor is on, or **Copy Cell Value** in the right-click menu for the cell under the pointer.

A binary value copies whole as `0x` and its hex digits, however much the cell shows, and pasting that into a binary column writes the bytes back. A pasted value that starts with `0x` but is not hex, such as one cut short with `…`, leaves the cell as it was, and pasted rows holding one are not added.

Right-click and open **Copy as** for CSV, CSV with Headers, Markdown, and **IN Clause**, which writes `('a', 'b', 'c')` for a `WHERE col IN (…)`, booleans as `1` and `0` on an engine without `TRUE` and `FALSE` such as SQL Server, and binary values as the engine's binary literal. **INSERT Statement(s)** and **UPDATE Statement(s)** appear when the result comes from a single table whose structure has loaded, and never on MongoDB or Redis. UPDATE is also missing on a table without a primary key that has a column no match can compare, such as a SQL Server `sql_variant`. **Copy Column Values** on the header menu copies one column, one value per line. Every format is also in **Edit > Copy Special**, where IN Clause takes the one column a cell selection covers, or the cursor's column. Those items have no shortcut until you record one in **Settings > Keyboard**.

Every copy follows the grid as shown: hidden columns are left out, columns keep their current order, and over a cell selection only those columns go out. INSERT and UPDATE write what a save of the same row would. They leave out the columns the server fills in, such as identity and computed columns. INSERT leaves a cell set to `DEFAULT` to the server, and UPDATE assigns it `DEFAULT`. The table name carries its schema. UPDATE finds the row as it is stored, not as you have edited it: by every column of the primary key, whether or not those cells are selected, or on a table without one by every column, hidden ones included, which also changes any identical copy of the row. A row you added and have not saved gets no UPDATE.

## Selection summary

Select two or more cells and the status bar shows their **Sum**, **Average** and **Count**. A narrow window shows the sum alone, then only the Σ button. Click it for the full list: **Count**, **Numbers**, **Empty**, **Sum**, **Average**, **Minimum** and **Maximum**, each with a copy button. Right-click inside the selection for **Copy Sum** and **Copy Average**.

* **Count** is the selected cells that are not NULL. **Average** divides the sum by **Numbers**, the cells that hold a number.
* Integer and decimal columns are summed. A text column is not, so a ZIP code such as `00501` never joins a total. A column with no declared type, such as a SQLite expression, is summed when its value is a plain number.
* `NaN`, `Infinity` and PostgreSQL `money` values are left out and counted under **Not a number**.
* A column shown with **Display As**, such as a Unix timestamp shown as a date, is counted but not summed.
* Rows marked for deletion are left out, so the figures match the table after you save.
* Only loaded rows count. On a paged table or a query that stopped at its row limit, a whole selected column covers the rows on screen, and the popover says so.
* The arithmetic is exact: `0.1` added ten times is `1`, and a `BIGINT UNSIGNED` sum keeps every digit. Copy writes the full value without group separators, ready to paste into SQL.

## View modes

Switch between **Data**, **Structure**, **JSON**, **Chart**, **Map**, and **Output** with the switcher at the leading edge of the status bar, or from **View > Result View**. Query tabs have no Structure mode, Map appears only while the result holds a column of drawable geometry, Output appears only when the statement printed something on the server (see [Server output](https://docs.tablepro.app/features/query-results.md#server-output)), the mode is remembered per tab, and [Cell and Row Viewers](https://docs.tablepro.app/features/json-viewer.md) covers JSON mode.

### Chart mode

> [!NOTE]
>
> Needs a [Pro plan](https://docs.tablepro.app/features/licensing.md).

Pick a bar, line, area, or scatter chart, then a numeric Y column. X takes row numbers, another numeric column, a date or timestamp column, or a categorical column; an optional text, boolean, enum, or set column splits the result into series. Date and timestamp columns plot on a real time axis, whatever order the rows arrive in. Hover the plot for exact values.

**Facet** takes another text, boolean, enum, or set column and draws one chart per value, in a grid with one legend under it. The panels share their Y axis and their X axis, except for row numbers, which each panel counts on its own. Panels follow the order the rows name their values, so `ORDER BY` sets it, and NULL gets a panel titled "No value". A series keeps its color, symbol, and dash in every panel, and a re-sort or a page turn does not change them.

A chart draws the loaded rows, up to 2,000 points, 20 series, 12 facets, and 50,000 inspected rows, and the toolbar says when it hit one: "Showing the first 2,000 points of 8,431 loaded rows". Null, binary, and unrepresentable axis values are skipped and counted. Grid selection, Find, hidden columns, and value filters do not narrow a chart, and the page controls and **Fetch All** stay in the status bar. Chart type and axes belong to the tab and follow the column names, so they survive a page turn, a sort, and a re-run.

### Map mode

**Map** appears when a column of the result holds values the map can read. A `geometry`, `geography` or `geo_shape` column usually does, and so does a MongoDB field holding GeoJSON, which arrives typed as JSON. A result of plain columns never carries the segment, and neither does a spatial column whose values are in a format the reader does not cover.

Points, lines and polygons draw over Apple's own tiles. Nothing about the result reaches a third-party tile server. Click a shape to select its row, then switch to **Data** to see that row selected in the grid; select rows in the grid and their shapes come back highlighted. **Fit to Result** frames every drawn shape. A result with more than one geometry column gets a picker to choose between them.

For one row's geometry on its own, select the row and open the inspector: a [geometry field](https://docs.tablepro.app/features/json-viewer.md#geometry-fields) there draws that value alone, in any view mode.

Values are read as WKT, EWKT, WKB and EWKB hex, GeoJSON, ClickHouse point and ring tuples, and all six spellings of an Elasticsearch `geo_point`, so PostGIS, MySQL, MariaDB, MongoDB, Snowflake, Elasticsearch and ClickHouse draw without any setup. The map draws the rows the grid is showing, so a value filter narrows it and the page controls and **Fetch All** stay in the status bar.

The toolbar says what was drawn and what was not: `Drawing 4,102 shapes in SRID 4326. 88 rows in other coordinate systems are not drawn.` One coordinate system is drawn at a time, whichever most of the column uses. A member of a multi-part geometry that the map cannot place is left out and counted in the same line, and the rest of that value still draws.

> [!NOTE]
>
> Maps place longitude and latitude. Geographic SRIDs 4326, 4979, 4269, 6318, 4258, 4283, 7844, 4490, 4674 and 6668 draw as stored, with no datum shift. Web Mercator (3857, 900913, 3785, 102100, 102113) is converted, and a column carrying no SRID draws when every coordinate falls inside the range of longitude and latitude.

Any other SRID, such as the projected 27700 or 32633, draws nothing: the pane names the SRID and asks for `ST_Transform(geom, 4326)`, which produces a result the map draws. Curved and polyhedral geometry (`CIRCULARSTRING`, `CURVEPOLYGON`, `COMPOUNDCURVE`, `MULTICURVE`, `MULTISURFACE`, `POLYHEDRALSURFACE`, `TIN`, `TRIANGLE`) is counted and named rather than drawn; `ST_CurveToLine` converts it. Latitude past 85.05 degrees flattens to that value, so Arctic and Antarctic shapes land in the wrong place.

The map is one element to VoiceOver and does not publish its shapes, so the grid stays the readable representation of spatial rows.

SQL Server, Oracle, SpatiaLite, Teradata, Trino, Presto, Spanner, Cassandra and BigQuery hand geometry over in formats the reader does not cover yet. Their spatial columns show text and carry no Map segment, because the segment follows what the values are rather than what the column is called.

## Editing and display

Double-click a cell, or press `Return` on it, to edit it in place. A value that holds a line break, or runs past 256 characters, opens in a larger editor anchored to the cell instead: `Return` saves, `Option+Enter` starts a new line and `Escape` cancels. `Option+Enter` while editing in the cell moves the text into that editor. In a grid you cannot edit, the same gestures open the value in a viewer. Nothing reaches the database until you save, and [Change Tracking](https://docs.tablepro.app/features/change-tracking.md) covers the type-specific editors, the row operations, and what a Save runs.

With the grid focused, `Cmd+=` and `Cmd+-` make its text bigger or smaller. They change **Font size** in [data settings](https://docs.tablepro.app/customization/data-settings.md#grid), so every grid, the inspector and the cell popovers follow, and the size is kept between launches.

NULL renders as styled `NULL` text. That text, the date format, row height, row numbers, and alternate row backgrounds are [data settings](https://docs.tablepro.app/customization/data-settings.md). Every shortcut the grid answers to, and how to rebind it, is in [Keyboard Shortcuts](https://docs.tablepro.app/features/keyboard-shortcuts.md).

### Invisible characters

A value that will not match a `WHERE` clause it looks right for often holds a character that draws as nothing. Cells mark those characters the way the [SQL editor](https://docs.tablepro.app/features/sql-editor.md#invisible-characters) does: a zero-width space, a byte order mark, a soft hyphen or a bidirectional control shows as a box with its short name, such as `ZWSP`, `BOM`, `SHY` or `RLO`, and a non-breaking or other special space is outlined. A carriage return with no line feed after it shows as `CR`. Other line breaks still read as a space.

The inspector's text fields, the viewer and editor that open on a cell, and the [text window](https://docs.tablepro.app/features/json-viewer.md#row-details-inspector) mark the same characters. The text window's status bar also counts the value's characters and bytes.

To hide the marks, turn off **Show invisible characters** in [Settings > Data](https://docs.tablepro.app/customization/data-settings.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.