# Adding data to grid

**URL:** https://forum.kirupa.com/t/adding-data-to-grid/167928
**Category:** flash
**Created:** [November 2, 2005, 2:38pm UTC](https://forum.kirupa.com/t/adding-data-to-grid/167928 "2005-11-02T14:38:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)
#### Post date: [November 2, 2005, 2:38pm UTC](https://forum.kirupa.com/t/adding-data-to-grid/167928/1 "2005-11-02T14:38:40Z")

</div>

Hi  
I have made this multi-frame flash application.  
In one of the frames I am adding data to the grid using addItem  
I used trace(grid) for getting the instance but when I switch to this frame back from any other frame I am getting various instances and hence the code written in this frame doesnt executes anymore  
\_level0.instance9.grid  
\_level0.instance105.grid  
\_level0.instance199.grid  
\_level0.instance293.grid  
\_level0.instance387.grid  
\_level0.instance481.grid  
\_level0.instance575.grid  
Is there anyway I can make sure that whenever I come to this frame, my data gets added to the grid  
Thanks
