# DataUpdateConfig

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

How a Grid API row update runs.

`runAsync` runs the update asynchronously. `flushAsync` waits for queued async updates to finish. `addIndex` is the row index for added rows. `callback` runs when the batch finishes.

```ts title="TypeScript"
export interface DataUpdateConfig 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [addIndex](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md#addindex) | `number` | Index where to add new rows |
| [callback](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md#callback) | `(res: any) => void` | Callback function invoked when a batch successfully concludes |
| [flushAsync](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md#flushasync) | `boolean` | Whether to flush async operations |
| [runAsync](https://www.adaptabletools.com/docs/reference/dataupdateconfig.md#runasync) | `boolean` | Whether row operation should happen asynchronously |

## Property Details

### addIndex

Index where to add new rows

```ts title="TypeScript"
addIndex?: number;
```

###### Property Value

`number`

### callback

Callback function invoked when a batch successfully concludes

```ts title="TypeScript"
callback?: (res: any) => void;
```

###### Property Value

`(res: any) => void`

### flushAsync

Whether to flush async operations

```ts title="TypeScript"
flushAsync?: boolean;
```

###### Property Value

`boolean`

### runAsync

Whether row operation should happen asynchronously

```ts title="TypeScript"
runAsync?: boolean;
```

###### Property Value

`boolean`
