# DataGridPrintOptions (@salmonui/data-grid)

> The DataGridPrintOptions interface of @salmonui/data-grid.

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

```ts
import type { DataGridPrintOptions } 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 DataGridPrintOptions<Row = unknown> extends DataGridPrinting<Row> {
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `scope?: "all" \| "page";` | optional, inherited | `all` (default): every page of the current query. `page`: the current page. |
| `hierarchy` | `hierarchy?: ExportHierarchyMode;` | optional, inherited | Detail and child-grid rows: `expanded` (default), `all`, or `none`. |
| `detail` | `detail?: ((ctx: ExportDetailContext<Row>) => void \| ExportDetail \| null \| undefined);` | optional, inherited | 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` | `tree?: "all" \| "expanded";` | optional, inherited | Tree mode: `expanded` (default) prints the visible rows, `all` every kept row; the tree column is indented. |
