Adding data to grid

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
Is there anyway I can make sure that whenever I come to this frame, my data gets added to the grid