Thanks Matt,
This is the only way I have managed to do this so far ... getting the
xml to return the group record as a member record and flagging it as a
header then using a cellrenderer to distinguish between the group
header and member records.
I just thought I may have missed an obvious way of achieving grouping.
Many Thanks for your reply
L

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> Datagrids don't really support nested columns right now.  You would
> probably need to transform your data into something linear and then use
> some sort of marker to help get the ordering right.
> 
>  
> 
> Matt
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of msloumac
> Sent: Monday, July 11, 2005 8:42 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] xml datagrid grouping data
> 
>  
> 
> 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 
> 
>  
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
> ________________________________





--
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/
 


Reply via email to