I have the colum field in an array now i want set the ordering of
column in datagrid as in array using action script how to do this.

thanks
akhil agrawal

On Jul 8, 11:28 am, Akhil Agrawal <[email protected]> wrote:
> Is there a way to get field name from arraycollection for example
>
> public var expenses:ArrayCollection = new ArrayCollection([
>        {Month:"Jan", Profit:2000, Expenses:1500, Amount:450},
>         {Month:"Feb", Profit:1000, Expenses:200, Amount:600},
>         {Month:"Mar", Profit:1500, Expenses:500, Amount:300}
>      ]);
>
> how to get Month, Profict etc from this if i do't know which field are
> there.
>
> On Jul 8, 10:42 am, Akhil Agrawal <[email protected]> wrote:
>
> > Hi,
> > I am providing dataprovider to datagrid. Problem is that it is
> > displaying the columns name in sorted order not in the order as in
> > dataprovider. Why it is so?? how to fix it. dataprovider is an
> > arraycollection
>
> > Thanks
> > Akhil Agrawal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to