Hello Friends,
Please observe this code
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
private var testArr:ArrayCollection;
private var text:String = "pradeep";
public function initApp():void{
testArr = new
ArrayCollection([{First:'1',Second:'2',Third:'3'}]);
}
]]>
</mx:Script>
<mx:Label text="{text}"/>
<mx:Text text="{text}" x="69" y="10"/>
<mx:DataGrid x="30" y="46" dataProvider="{testArr}" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Column 1"
dataField="First"/>
<mx:DataGridColumn headerText="Column 2"
dataField="Second"/>
<mx:DataGridColumn headerText="Column 3"
dataField="Third"/>
</mx:columns>
</mx:DataGrid>
In this code without bindable also the string component can bind the
value into label and text component.
incase os datagrid it wll not bind and doesn't display the value
Please tel me the bottom lins of this mechanism.
Regards,
Pradeep.
--
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=.