# emitPasteRejected

> _Since v3.0.0_

Dispatch the `paste-rejected` event on the grid. No-op when `rejected` is empty.
Exposed so a custom `pasteHandler` can emit the same event the default handler
does, after resolving cells via resolveColumnPaste.

```ts
function emitPasteRejected(grid: GridElement, rejected: PasteRejectedCell[]): void
```

## Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `grid` | <code>GridElement</code> |  |
| `rejected` | <code><a href="/grid/plugins/clipboard/interfaces/pasterejectedcell/">PasteRejectedCell</a>[]</code> |  |
