# getCellEditorInstance

Reads the mounted cell editor instance and context, or null if no editor exists.

Canonical: https://grid.syidax.com/docs/methods/getCellEditorInstance/

<a id="meaning"></a>

## What does this API do?

Reads the mounted cell editor instance and context, or null if no editor exists.

<a id="contract"></a>

## Exact input and result types

```typescript
getCellEditorInstance(): Promise<
    GridMountedComponentLookup<
      GridEditorInstance<GridData, unknown, unknown>,
      GridEditorParams<GridData, unknown, unknown>,
      HTMLElement
    >
    | null
  >
```

| Arguments | Required | Type |
| --- | --- | --- |

The return type is `Promise<
    GridMountedComponentLookup<
      GridEditorInstance<GridData, unknown, unknown>,
      GridEditorParams<GridData, unknown, unknown>,
      HTMLElement
    >
    | null
  >`.

<a id="usage"></a>

## Usage flow

After registering and initializing the Grid element, call grid.getCellEditorInstance(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

<a id="types"></a>

## Read related types

- [GridMountedComponentLookup](https://grid.syidax.com/docs/types/GridMountedComponentLookup.md)
- [GridEditorInstance](https://grid.syidax.com/docs/types/GridEditorInstance.md)
- [GridData](https://grid.syidax.com/docs/types/GridData.md)
- [GridEditorParams](https://grid.syidax.com/docs/types/GridEditorParams.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Cell and row editing](https://grid.syidax.com/docs/features/cell-editing.md) — Cell editing changes one value immediately; full-row editing commits multiple fields as one row operation. editor specifies the input UI, while editable controls write access.
