Data Grid — Columns
Data DisplayExamples
Pinning, resizing, reordering and the column chooser
pin: 'left' or 'right' keeps a column in view while the rest scrolls. Drag a header edge to resize within minWidth and maxWidth , drag a header to reorder ( columnReorder ), and show or hide columns from the column chooser in the toolbar.
| INV-0001 | Acme Corp | 2026-01-10 | Licence | North | 1 | 240 | Paid |
| INV-0002 | Globex | 2026-02-11 | Support plan | South | 2 | 480 | Due |
| INV-0003 | Initech | 2026-03-12 | Consulting | East | 3 | 720 | Overdue |
| INV-0004 | Umbrella | 2026-04-13 | Hardware | West | 4 | 960 | Paid |
| INV-0005 | Stark Industries | 2026-05-14 | Licence | North | 5 | 1200 | Due |
Drag a header to reorder the columns.
Automatic column sizing
[columnSizing] sizes columns that have no width : 'content' (recommended) fits the widest value, 'header' fits the header label, and 'stretch' fills the container. Columns with a width keep it.
| INFO | Orders | POST /api/orders returned 201 Created | 2026-10-21 09:12:34 |
| WARN | Inventory | Low stock for SKU-1042 (5 left) | 2026-10-21 09:12:37 |
| ERROR | Payments | Card declined by the issuer (code 51) | 2026-10-21 09:15:04 |
| DEBUG | Shipping | Carrier quote requested | 2026-10-21 09:20:15 |