---
url: https://akinozgen.github.io/datagrids/errors/DG006.md
description: >-
  One datagrids warning or error code — the message, when it happens and how to
  fix it.
---

# DG006: No grid with that name

```text
[datagrids DG006] Datagrids.reload(`{name}`): no grid with that name.
```

Printed with `console.warn`, once per distinct message. `configure({ warnings: false })` silences it.

## When it happens

`reload(name)` found no live grid registered under `name`; it returns `false` and does nothing.
A grid registers its `name` option when it is created and unregisters on `destroy()`.

## How to fix it

Give the grid a `name` and make sure it exists when you reload it:

```js
new Datagrid("#agents", { name: "agents", label: "Agents", columns });
reload("agents", { keepPage: true });
```

Use `find(name)` to check for a grid without a warning.

## Related

* [All warning codes](/errors/)
* [Grid options](/reference/options)
* [Static API & configure()](/reference/static)
