Files
dbx/docs/content/docs/data-grid.mdx
T
t8y2 51b8b9344f docs: update static docs for v0.5.0 new features
Add documentation for cell detail panel, ORDER BY filter, auto-fit
columns, Copy as INSERT, Redis browser overhaul, create/drop database
and schema, CROSS APPLY/OUTER APPLY completion, OceanBase Oracle mode
detection, and default database setting.
2026-05-09 13:19:39 +08:00

60 lines
2.5 KiB
Plaintext

---
title: Data Grid
description: Virtual scrolling for 100K+ rows, inline editing with SQL preview, multi-format export.
---
<Callout type="info">
Virtual scrolling keeps it smooth at 100K+ rows. Inline editing with full SQL preview before committing any changes.
</Callout>
## Virtual Scrolling
The grid uses virtual scrolling — only the rows visible on screen are rendered at any given time, so performance remains consistent whether you are viewing 100 rows or 100,000 rows.
## Inline Editing
Edit data directly in the grid without writing SQL:
- **UPDATE** — Click a cell to modify its value. Changed cells are highlighted
- **INSERT** — Add a new row at the bottom and fill in cell values
- **DELETE** — Select rows and mark them for deletion
All changes are staged locally and not written to the database until you confirm.
## SQL Preview
<Callout type="info">
Before saving, DBX shows a preview of the exact `UPDATE`, `INSERT`, or `DELETE` statements that will be executed. Review and confirm before committing.
</Callout>
This prevents accidental data modifications and gives you full visibility into what will change.
## Cell Detail Panel
Click a cell to open its detail panel on the right side. The panel provides:
- **Value Editor** — Edit long text, JSON, or other complex values in a larger, more comfortable editor
- **Set NULL** — Explicitly set a cell value to `NULL` with one click
## Sorting and Filtering
- **Sort** — Click a column header to sort ascending or descending. A sort hint icon appears when you hover over the column header
- **Search** — Use the search bar to find text across all visible columns
- **WHERE Filter** — Apply a custom `WHERE` clause for database-level filtering. More efficient than client-side search for large tables
- **ORDER BY** — Use the dedicated `ORDER BY` input to control the sort order at the database level, independent of the WHERE filter
## Column Resize and Row Numbers
- Drag column borders to resize columns
- **Auto-fit** — Double-click a column border to automatically fit the column width based on header and data content
- Row numbers are displayed in the leftmost column
## Export
| Format | Description |
|---|---|
| CSV | Comma-separated values, compatible with Excel and spreadsheet tools |
| JSON | Array of objects, suitable for use in code or APIs |
| Markdown | Markdown table, useful for pasting into documentation or chat |
| Copy as INSERT | Right-click selected rows to copy them as `INSERT` statements, ready to paste and execute in another database |