Urgent DataGrid!

I’m using a datagrid to display the values of an array for a menu. The problem I have is I can’t get the values of the array to display on different rows.

 
function dataGridFunction(){
 
 
for (i=0; i<gotoArray.length; i++){
myDataGrid.addItem({BookMark:gotoArray*})
}
}

This is a very brief clip of my code… gotoArray values are set else were in my code. I am really stuck on this as I can’t find any tutorials or many people who use datagrids! Any help would be amazing.

Thanks