sbeausol
02-13-2009, 11:06 PM
I am managing a couple of array collections that i was hoping to hold in an array, however I'm having trouble getting the array collection back out of the array to populate into my data grid.
All the arraycollections have the same basic format with many rows like this:
arrayCol1.addItem({b: 500.27, bint: 23.55, Nnum: 1, aa: 'A'});
I'm setting my array of arrayCollections like this:
var array:array = new array();
array.push(arrayCol1);
array.push(arrayCol2);
array.push(arrayCol3);
getting the array collection back out to put into a datagrid however isn't working for me:
var ac:ArrayCollection = new ArrayCollection();
ac = array[2];
var column1:DataGridColumn = new DataGridColumn();
var column2:DataGridColumn = new DataGridColumn();
column1.dataField = ac.aa;
column2.dataField = ac.Nnum;
any thoughts?
All the arraycollections have the same basic format with many rows like this:
arrayCol1.addItem({b: 500.27, bint: 23.55, Nnum: 1, aa: 'A'});
I'm setting my array of arrayCollections like this:
var array:array = new array();
array.push(arrayCol1);
array.push(arrayCol2);
array.push(arrayCol3);
getting the array collection back out to put into a datagrid however isn't working for me:
var ac:ArrayCollection = new ArrayCollection();
ac = array[2];
var column1:DataGridColumn = new DataGridColumn();
var column2:DataGridColumn = new DataGridColumn();
column1.dataField = ac.aa;
column2.dataField = ac.Nnum;
any thoughts?