The column ordering by default is unfortunately often backwards due to how ActionScript enumerates properties.  You’ll need to specify the columns explicitly if order is important to you.

 

Matt

 


From: [email protected] [mailto:[email protected]]
Sent: Thursday, April 21, 2005 5:42 PM
To: [email protected]
Subject: [flexcoders] DataGrid displaying remote object data

 


I have a DataGrid with an object set as the data provider:

<mx:DataGrid id="dg3"  dataProvider="{my_list.dataValues}"/>

dataValues is a 2 dimensional array in the my_list variable. The
my_list object is populated via a remote object call. Everything works
ok and I get the data back in my grid. However, the data is displayed
with the last column first. eg. If my data comes back with 5 columns
and 5 rows, the grid diplays it as follows:

Col 4   Col 3   Col 2   Col 1   Col 0

instead of

Col 1   Col 2   Col 3   Col 3   Col 4

Am I missing something? Thanks.






Yahoo! Groups Links

Reply via email to