
Data Grids
We regularly have to build tables of structured information.
This is easy in Flex, thanks to two controls: the DataGrid and
the AdvancedDataGrid. I’ll start by showing the DataGrid control
(see Example 4-11).
Example 4-11. Datagrid.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:XMLList id="employees">
<employee>
<name>Christina Coenraets</name>
<phone>555-219-2270</phone>
<active>true</active>
</employee>
Figure 4-10. A collection of the basic control types
Data Grids | 51
Commenti su questo manuale