# DataGridPrinting (@salmonui/data-grid)

> The DataGridPrinting interface of @salmonui/data-grid: Print scope, hierarchy, detail and tree options.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridPrinting

```ts
import type { DataGridPrinting } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridPrinting<Row = unknown> {
    readonly scope?: 'all' | 'page';
    readonly hierarchy?: ExportHierarchyMode;
    readonly detail?: ExportHandlers<Row>['detail'];
    readonly tree?: 'expanded' | 'all';
}
```

Print scope, hierarchy, detail and tree options.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `readonly scope?: 'all' \| 'page';` | optional | `all` (default): every page of the current query. `page`: the current page. |
| `hierarchy` | `readonly hierarchy?: ExportHierarchyMode;` | optional | Detail and child-grid rows: `expanded` (default), `all`, or `none`. |
| `detail` | `readonly detail?: ExportHandlers<Row>['detail'];` | optional | A detail block printed after a data row (text lines or a child table), as the export `detail` hook: React detail templates never print by themselves. `undefined` falls back to the child grid (hierarchy), `null` prints none. |
| `tree` | `readonly tree?: 'expanded' \| 'all';` | optional | Tree mode: `expanded` (default) prints the visible rows, `all` every kept row; the tree column is indented. |
