# resolveCellValue

> _Since v2.2.0_

Resolve the cell value for a column, honoring `valueAccessor` if defined,
otherwise reading `row[column.field]`.

```ts
function resolveCellValue(row: TRow, column: ColumnConfig<TRow>, rowIndex: number): unknown
```

## Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `row` | <code>TRow</code> | The row object |
| `column` | <code><a href="/grid/api/core/interfaces/columnconfig/">ColumnConfig</a>&lt;TRow&gt;</code> | The column definition |
| `rowIndex` | <code>number</code> | The visible row index (passed to accessor; defaults to -1) |

## Example

```typescript
const value = resolveCellValue(row, column);
```
