# ContextMenuContext

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

Provides full details about current cell (and selected cells) where the Context Menu will appear

```ts title="TypeScript"
export interface ContextMenuContext<TData = any> extends BaseContext 
```

###### Extends

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

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [adaptableColumn](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#adaptablecolumn) | [`AdaptableColumn`](https://www.adaptabletools.com/docs/reference/adaptablecolumn.md)`<TData>` | Current AdapTable Column |
| [agGridColumn](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#aggridcolumn) | `Column` | Current AG Grid Column |
| [gridCell](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#gridcell) | [`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`<TData>` | Cell that has been clicked; contains cell value |
| [isGroupedNode](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#isgroupednode) | `boolean` | Whether current AG Grid row node is grouped |
| [isRowGroupColumn](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#isrowgroupcolumn) | `boolean` | Whether current Column is Row Grouped |
| [isSelectedCell](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#isselectedcell) | `boolean` | Whether cell that was clicked is also currently selected |
| [isSelectedRow](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#isselectedrow) | `boolean` | Whether cell that was clicked is in a Row that is currently selected |
| [isSingleSelectedCell](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#issingleselectedcell) | `boolean` | Whether the clicked cell is the only selected cell |
| [isSingleSelectedColumn](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#issingleselectedcolumn) | `boolean` | Whether Column that was clicked is only column with selected cells |
| [primaryKeyValue](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#primarykeyvalue) | `any` | Value of Primary Key column in current row |
| [rowNode](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#rownode) | `IRowNode<TData>` | Current AG Grid row node |
| [selectedCellInfo](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#selectedcellinfo) | [`SelectedCellInfo`](https://www.adaptabletools.com/docs/reference/selectedcellinfo.md)`<TData>` | Currently selected cells in the grid |
| [selectedRowInfo](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#selectedrowinfo) | [`SelectedRowInfo`](https://www.adaptabletools.com/docs/reference/selectedrowinfo.md)`<TData>` | Currently selected rows in the grid |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/contextmenucontext.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### adaptableColumn

Current AdapTable Column

```ts title="TypeScript"
adaptableColumn: AdaptableColumn<TData>;
```

###### Property Value

[`AdaptableColumn`](https://www.adaptabletools.com/docs/reference/adaptablecolumn.md)`<TData>`

### agGridColumn

Current AG Grid Column

```ts title="TypeScript"
agGridColumn: Column;
```

###### Property Value

`Column`

### gridCell

Cell that has been clicked; contains cell value

```ts title="TypeScript"
gridCell: GridCell<TData>;
```

###### Property Value

[`GridCell`](https://www.adaptabletools.com/docs/reference/gridcell.md)`<TData>`

### isGroupedNode

Whether current AG Grid row node is grouped

```ts title="TypeScript"
isGroupedNode: boolean;
```

###### Property Value

`boolean`

### isRowGroupColumn

Whether current Column is Row Grouped

```ts title="TypeScript"
isRowGroupColumn: boolean;
```

###### Property Value

`boolean`

### isSelectedCell

Whether cell that was clicked is also currently selected

```ts title="TypeScript"
isSelectedCell: boolean;
```

###### Property Value

`boolean`

### isSelectedRow

Whether cell that was clicked is in a Row that is currently selected

```ts title="TypeScript"
isSelectedRow: boolean;
```

###### Property Value

`boolean`

### isSingleSelectedCell

Whether the clicked cell is the only selected cell

```ts title="TypeScript"
isSingleSelectedCell: boolean;
```

###### Property Value

`boolean`

### isSingleSelectedColumn

Whether Column that was clicked is only column with selected cells

```ts title="TypeScript"
isSingleSelectedColumn: boolean;
```

###### Property Value

`boolean`

### primaryKeyValue

Value of Primary Key column in current row

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

###### Property Value

`any`

### rowNode

Current AG Grid row node

```ts title="TypeScript"
rowNode: IRowNode<TData>;
```

###### Property Value

`IRowNode<TData>`

### selectedCellInfo

Currently selected cells in the grid

```ts title="TypeScript"
selectedCellInfo: SelectedCellInfo<TData>;
```

###### Property Value

[`SelectedCellInfo`](https://www.adaptabletools.com/docs/reference/selectedcellinfo.md)`<TData>`

### selectedRowInfo

Currently selected rows in the grid

```ts title="TypeScript"
selectedRowInfo: SelectedRowInfo<TData>;
```

###### Property Value

[`SelectedRowInfo`](https://www.adaptabletools.com/docs/reference/selectedrowinfo.md)`<TData>`

### 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`
