Hi Raja, Firstly, if you want the dates and the tutors to be associated, add tutor's name inside the "datecomb" tag. Next, if you want to display this in a DataGrid, you can take two approaches based on the possibility of you changing the XML Schema.
1. Modify the XML so that the structure is similar to the columns you want in the datagrid. Here is an example of displaying XML data in DataGrid http://blog.flexexamples.com/2007/07/26/displaying-xml-data-in-a-datagrid/ 2. And if you cannot change the xml schema, then read the XML data and convert it into an ArrayCollection with studentName, beginDate, endDate, and tutorName as the properties of objects in the ArrayCollection. Regards, Venkat www.venkatv.com On Thu, Dec 18, 2008 at 8:14 PM, Ravi <[email protected]> wrote: > hi Raja > > U can refer adobe video tutorial > http://www.adobe.com/devnet/flex/videotraining/ > > > On Thu, Dec 18, 2008 at 7:47 PM, Raja <[email protected]>wrote: > >> >> hi, >> >> I trying to display data in Data Grid using XML file. >> >> Name BeginDate EndDate Tutor >> Student1 01/01/2008 01/31/2008 ABC >> Student1 02/01/2008 02/28/2008 MNY >> Student1 03/01/2008 02/30/2008 XYZ >> >> >> my xml file looks like this >> >> <studentdetail> >> <student> >> <studentname> Student </studentname> >> </student> >> <listtutor> >> <tutor> >> <tutorname> Harris Co </tutorname> >> </tutor> >> <tutor> >> <tutorname> John Co </tutorname> >> </tutor> >> <tutor> >> <tutorname> Liberty Co </tutorname> >> </tutor> >> </listtutor> >> <Listdatecombination> >> <datecomb> >> <begindate>01/01/2008 </begindate> >> <enddate>01/01/2009 </enddate> >> </datecomb> >> <datecomb> >> <begindate>01/01/2009 </begindate> >> <enddate>01/01/2010 </enddate> >> </datecomb> >> <datecomb> >> <begindate>01/01/2010 </begindate> >> <enddate>01/01/2011 </enddate> >> </datecomb> >> </Listdatecombination> >> </studentdetail> >> >> >> Here since student is the same i have defined only once in the >> beginning and then i have defined tutor list and Date combination >> list. How can i display the data in a single datagrid. any help >> please. >> >> regards, >> Raja >> >> >> >> > > > -- > Regards, > Ravikumar G.M. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

