I have <mx:DataGrid>
in my system like the following.
<mx:DataGrid id="testDG">
<mx:columns>
<mx:DataGridColumn headerText="name" dataField="name">
<mx:DataGridColumn headerText="measure" dataField="measure">
</mx:columns>
</mx:DataGrid>
It has two columns, name
and measure
. I want to add another number of columns and it's data in the datagrid as respect to measure
.
So, it looks like:
name measure 1-Aug 2-Aug 3-Aug ...
abc ggggg 20 22 24 ...
xyz fffff 21 19 20 ...
pqr hhhhh 30 21 13 ...
... ... ... ... ...
I want to add date
wise result followed by measure
column dynamically.
So, is it possible? How can I add dynamic columns after measures in Flex?