Layout DataGrid, TextArea and LinkButton in VBox
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel width="500" height="500" layout="absolute" title="Vampire Books">
<mx:VBox width="100%" height="100%">
<mx:DataGrid width="100%" height="200" id="datagridBooks">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1"/>
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="Column 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
<mx:TextArea width="100%" height="200"/>
<mx:LinkButton label="Goto Book"/>
</mx:VBox>
</mx:Panel>
</mx:Application>
Related examples in the same category