Wednesday, February 2, 2011

How use Data Grid in Flex

Data grid is a essential part in application so we must know how to use it. First open your IDE in this case i will use Eclipse Europa with flex builder plug in.
Please copy code bellow in your flex project:






<_number>123456
<_name>Haruki Takumi
<_address>Kyoto Nippon Street


<_number>654321
<_name>Ichigo Kurosaki
<_address>Tokyo Street


<_number>654123
<_name>Uzumaki Naruto
<_address>Leaf Village















In the example above there a have 2 part, the part number 1 is XMLList it place to put data and the part 2 is DataGrid. So after we have a data in XMLLIST we can bind it to datagrid using data provider. This is a screen shoot after the code run:


Okay finnaly congaratulation you have know about how to use data grid and i hope this tutorial can help you...Thank you...^^

No comments:

Post a Comment