Try This:
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var mgmtAC:ArrayCollection = new
ArrayCollection([
{Part:"Environmental Size", Construct:"Total
SAN",Today:"2175",
LastWeek:"2142", LastMonth:"1865"},
{Part:"Availability", Construct:"Avg IO",Today:"1.6",
LastWeek:"1.8", LastMonth:"1.8"},
{Part:"Availability", Construct:"% of
single",Today:"7%",
LastWeek:"6%", LastMonth:"6%"},
]);
]]>
</mx:Script>
<mx:AdvancedDataGrid id="myADG"
width="100%" height="100%"
initialize="gc.refresh();">
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{mgmtAC}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="Part"/>
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Construct"/>
<mx:AdvancedDataGridColumn dataField="Today"/>
<mx:AdvancedDataGridColumn dataField="LastWeek"
headerText="Last Week"/>
<mx:AdvancedDataGridColumn dataField="LastMonth"
headerText="Last Month"/>
</mx:columns>
</mx:AdvancedDataGrid>
( for centre aligning, i suppose u'll have to use renderer)
Warm Regards,
Virus
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.