You can also simply specify the
columnNames as an array of strings.
myDG.columnNames = [‘firstColumn’,
‘secondColumn’, …];
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
Sent: Friday, April 22, 2005 6:22
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid
displaying remote object data
Thanks Matt. I'm displaying information received
dynamically, so I
cannot specify the columns before hand. I could
parse through the
data I receive and set them on the fly. Is this
possible in
ActionScript? Any examples?
Thanks.
--- In flexcoders@yahoogroups.com,
Matt Chotin <[EMAIL PROTECTED]> wrote:
> 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: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
> Sent: Thursday, April 21, 2005 5:42 PM
> To: flexcoders@yahoogroups.com
> 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
>
> * To visit your
group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/>
>
> * To
unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]
subject=Unsubscribe>
>
> * Your use of
Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>
Terms of Service.
Yahoo! Groups Links
|