# ColumnLookup (@salmonui/data-grid/engine)

> The ColumnLookup interface of @salmonui/data-grid/engine: column.lookup: the cell holds a value matched against keyField of the lookup rows; the grid shows, sorts, filters, searches, and groups by displayField.

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

```ts
import type { ColumnLookup } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid/engine/lookup`.

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

## Reference

Kind: interface

```ts
interface ColumnLookup {
    readonly data: readonly unknown[] | LookupSource;
    readonly keyField?: string;
    readonly displayField: string;
}
```

`column.lookup`: the cell holds a value matched against `keyField` of the
lookup rows; the grid shows, sorts, filters, searches, and groups by
`displayField`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly unknown[] \| LookupSource;` |  | Lookup rows, or a source that loads them by value (`@salmonui/data` `createLookup`, `createJsonLookup`). |
| `keyField` | `readonly keyField?: string;` | optional | Field of the lookup rows matched against the cell value. Default: the column `field`. Dot paths allowed. |
| `displayField` | `readonly displayField: string;` |  | Field of the lookup rows displayed. Dot paths allowed. |
