# csvImported

Emitted after CSV import completes. Report the actual applied row and column counts to users.

Canonical: https://grid.syidax.com/docs/events/csvImported/

<a id="meaning"></a>

## What does this API do?

Emitted after CSV import completes. Report the actual applied row and column counts to users.

<a id="contract"></a>

## Exact input and result types

```typescript
csvImported: { rowCount: number; columnCount: number }
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('csvImported', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('csvImported', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="recipes"></a>

## Feature explanations and examples

- [Import CSV](https://grid.syidax.com/docs/features/csv-import.md) — CSV import converts delimited text into new columns and rows. Unlike a transaction that appends rows, importCsvText replaces columnDefs and rowData.
