# writeCsv (@salmonui/data-grid/engine/export)

> The writeCsv function of @salmonui/data-grid/engine/export: Writes the whole model as one CSV string.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-export/writeCsv

```ts
import { writeCsv } from '@salmonui/data-grid/engine/export';
```

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

## Reference

Kind: function

```ts
function writeCsv<Row>(model: ExportModel<Row>, options?: CsvOptions): string;
```

Writes the whole model as one CSV string.
