# Updatable Datagrid Row

**URL:** <https://forum.kirupa.com/t/updatable-datagrid-row/320487>\
**Category:** flash\
**Created:** [March 24, 2011, 6:21pm UTC](https://forum.kirupa.com/t/updatable-datagrid-row/320487 "2011-03-24T18:21:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://forum.kirupa.com/u/radi)\
**Post date:** [March 24, 2011, 6:21pm UTC](https://forum.kirupa.com/t/updatable-datagrid-row/320487/1 "2011-03-24T18:21:10Z")

</div>

the message you have entered is too short. Please lengthen your message to at least 1 characters. i had like 2 paragraphs ☹ AHHH twice now… atleast i copyed before trying to post this time… three times… are the fourms broken?

```auto
 
if (panearray[cc["id" + i]] == undefined)
        {
            trace("this happened");
            
        panearray[cc["id" + i]] = Pane.addItem({ID:cc["id" + i],Name:cc["Name" + i],Life:cc["Life" + i]});
        
        }
        else
        {
            trace("this happened too");
            panearray[cc["id" + i]] = [cc["id" + i],cc["Name" + i],cc["Life" + i]];
        }  

```

What im trying to do is set a data grid row as a variable in a array, however after setting the variable it remains undefined what is it im doing wrong im also guessing at the code in the else, since i haven’t gotten there to test it
