Hi all,
i am trying to print the value of field of an arraycollection. suppose
i do't know the field name. i m trying like this

[Bindable]
     public var expenses:ArrayCollection= new ArrayCollection([
        {Month:"Jandfadfadfdafdaf", Profit:2000, Expenses:1500, Amount:
450},
        {Month:"Fedafdafdfdfb", Profit:1000, Expenses:200, Amount:
600},
        {Month:"Mafadfrgrgrerewfrerewtreftrefr", Profit:1500, Expenses:
500, Amount:300}]
)

public function ff():void{
                var dg:DataGrid=new DataGrid();
                dg.verticalScrollPolicy="false";
                dg.variableRowHeight=true;
                dg.variableRowHeight=true;
                dg.height=c1.height;
                dg.wordWrap=true;
                dg.dataProvider=expenses;
                var he:DataGridColumn=dg.columns[0];
                var str:Object=he.headerText;
                Alert.show(he.headerText,"djf");
                Alert.show(expenses.getItemAt(0).,"fdfjdf");
                dg.width=c1.width;
                c1.addChild(dg);
                dg.columns[0].width=dg.width*.50;
                Alert.show(dg.rowHeight.toString(),"");
                }

suppose i do't know the fields of arraycollection ie. do not know that
fieldname are month,amout etc. bt want the information as string for
the field how it is possible
--~--~---------~--~----~------------~-------~--~----~
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