Share on Google+Share on Google+

Flex DataGrid control

you can see in this tutorial you can see how to create DataGrid in flex.

DataGrid in Flex:-

A DataGrid is a control in flex which is display data in the table format and also provide the property to edit in the table items and display via custom renderers. The main features of the DataGrid is that, you can resize the columns and modify the columns and set row header, editable and user can drag and drop capability.

In this Tutorial you can see how to create a DataGrid and what is the procedure to provide data by array collection.


<?xml version="1.0"?>

<mx:Application xmlns:mx="">

<mx:Panel width="420" height="300" title="DataGrid Panel">

<mx:DataGrid backgroundColor="green" borderColor="black" borderThickness="2" width="400" height="200" editable="true" selectable="true">



<mx:state>Utter Pradesh</mx:state>





<mx:state>Utter Pradesh</mx:state>





<mx:state>Utter Pradesh</mx:state>





<mx:state>Madhya Pradesh</mx:state>











<mx:DataGridColumn dataField="state" />

<mx:DataGridColumn dataField="Distname" />

<mx:DataGridColumn dataField="population" />








Posted on: April 2, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.


Advertisement null