# DetailInitContext

Canonical page: https://www.adaptabletools.com/docs/reference/detailinitcontext

Context passed to Detail Grids when using Master Detail Plugin

```ts title="TypeScript"
export interface DetailInitContext extends BaseContext 
```

###### Extends

[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [data](https://www.adaptabletools.com/docs/reference/detailinitcontext.md#data) | `IRowNode['data']` | The data in the Master Grid Row that was opened |
| [primaryKeyValue](https://www.adaptabletools.com/docs/reference/detailinitcontext.md#primarykeyvalue) | `unknown` | Primary Key Value of Master Grid Row that was opened |
| [rowNode](https://www.adaptabletools.com/docs/reference/detailinitcontext.md#rownode) | `IRowNode` | Row Node in the Master Grid that was opened |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/detailinitcontext.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### data

The data in the Master Grid Row that was opened

```ts title="TypeScript"
data: IRowNode['data'];
```

###### Property Value

`IRowNode['data']`

### primaryKeyValue

Primary Key Value of Master Grid Row that was opened

```ts title="TypeScript"
primaryKeyValue: unknown;
```

###### Property Value

`unknown`

### rowNode

Row Node in the Master Grid that was opened

```ts title="TypeScript"
rowNode: IRowNode;
```

###### Property Value

`IRowNode`

### adaptableContext

> *Inherited from [BaseContext](https://www.adaptabletools.com/docs/reference/basecontext.md)*

Custom application Context provided in `AdaptableOptions.adaptableContext`

```ts title="TypeScript"
adaptableContext: any;
```

###### Property Value

`any`
