Question
Need help with Object
Hello,
Hopefully someone can help me out.
I created and populated an object like the following:
var myObj:Object = new Object();
myObj = {column01:column01Val,column02:column02Val};
then I threw this into a dataGrid like this:
var myDataGrid:DataGrid = new DataGrid();
myDataGrid.dataProvider = myObj;
the problem is that when the component is drawn, the order of the columns change like the following:
column02 | column01
-----------------------------------------
column02Val | column01Val
instead of:
column01 | column02
-----------------------------------------
column01Val | column02Val
Does anyone know why this is?
Thanks in advance!
Vazy
Hopefully someone can help me out.
I created and populated an object like the following:
var myObj:Object = new Object();
myObj = {column01:column01Val,column02:column02Val};
then I threw this into a dataGrid like this:
var myDataGrid:DataGrid = new DataGrid();
myDataGrid.dataProvider = myObj;
the problem is that when the component is drawn, the order of the columns change like the following:
column02 | column01
-----------------------------------------
column02Val | column01Val
instead of:
column01 | column02
-----------------------------------------
column01Val | column02Val
Does anyone know why this is?
Thanks in advance!
Vazy