Datagrid Question

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.

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 ?