Hello,
I am having trouble with a datagrid that i am trying to get to work.
I am currently pushing back XML structure from php to flex and it
comes back fine. Here is the structure:
<root>
<sectioncode label="Biology" id="1">
<student id="1">
<firstname>s1</firstname>
<lastname>s1</lastname>
<assignment label="Biological Materials" labid="1"
assignmentid="1">
<grade>A</grade>
</assignment>
</student>
<student id="5">
<firstname>John</firstname>
<lastname>Smith</lastname>
</student>
</sectioncode>
<sectioncode label="Chemistry" id="2">
<student id="22">
<firstname>s2</firstname>
<lastname>s2</lastname>
<assignment label="Chemical Materials" labid="2"
assignmentid="2">
<grade>B</grade>
</assignment>
<assignment label="BioChem" labid="8" assignmentid="3">
<grade>F</grade>
</assignment>
</student>
</sectioncode>
</root>
I would like to take this xml and put it into a datagrid. However,
since there can be an unlimited number of students within a section
and unlimited assignments to a student I need the datagrid to generate
columns dynamically for the number of assignments that there are. I
was thinking that the headers of the datagrid would be something like
FirstName,Lastname,SectionLabel,Assignment1Grade,Assignment2Grade....
Can anyone help me?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---