# PasteCellContext

> _Since v3.0.0_

Context passed to a column's BaseColumnConfig.onPaste guard/transform
for each cell a paste would write into.

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `value` | <code>TValue</code> | The incoming pasted value (the raw structured value for a same-grid paste). |
| `field` | <code>string</code> | The column field receiving the value. |
| `row` | <code>TRow</code> | The target row object (pre-paste state). |
| `rowIndex` | <code>number</code> | Index of the target row in the current data set. |
| `oldValue` | <code>TValue</code> | The cell's current value before the paste. |
| `sourceField?` | <code>string</code> | The column field the value was copied FROM (the origin column), for a same-app paste. `undefined` for an external paste (e.g. from Excel) or when the source column is unknown. Use it to reject cross-column / cross-type pastes (e.g. refuse a value copied from a "car" column into a "fruit" column). To compare types, look up your own column config by this field. <span class="since-badge" title="Introduced in v3.0.0">v3.0.0+</span> |
