Hi, Does anyone know whether it is possible to bind xml to a data model then use datagrid to group display the data?
e.g <mx:Model id="myModel"> <groups> <group gid="01" groupname="first group"> <member> <name>Bob</name> <age>32</age> </member> <member> <name>Harry</name> <age>34</age> </member> </group> <group gid="02" groupname="second group"> <member> <name>Tracey</name> <age>34</age> </member> <member> <name>Grace</name> <age>23</age> </member> </group> </groups> </mx:Model> <mx:DataGrid id="myGrid" dataProvider="{mx.utils.ArrayUtil.toArray(myModel.groups.group)}"> <mx:columns> <mx:Array> <mx:DataGridColumn columnName="gid" headerText="Group ID"/> <mx:DataGridColumn columnName="groupname" headerText="Group Name"/> then here a nested set of columns for the member children of each group? </mx:Array> </mx:columns> </mx:DataGrid> Any help appreciated :) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/