# Datagrid Question

**URL:** <https://forum.kirupa.com/t/datagrid-question/243046>\
**Category:** Uncategorized\
**Created:** [November 2, 2007, 8:10am UTC](https://forum.kirupa.com/t/datagrid-question/243046 "2007-11-02T08:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eamox](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@eamox](https://forum.kirupa.com/u/eamox)\
**Post date:** [November 2, 2007, 8:10am UTC](https://forum.kirupa.com/t/datagrid-question/243046/1 "2007-11-02T08:10:10Z")

</div>

Is there a way to add an item to a data grid without “knowing” the name of the column I’ve been trying for a while and my code comes to nothing.

```auto
for (z=0; z<posts.length; z++) {
            currentNode=posts[z]
            b = dg.getColumnAt(z);
            b.columnName==currentNode.nodeName?dg.addItemAt(z,{b:posts[z].firstChild}):"";
        }

```

is what I’ve tried and failed with anyone know if its possible ?
