I have already done that but it still gives the same error. Here the dataProvider is an XMLListCollection.
Here is the code mygroup.source = XMLListCollection(datagrid.dataProvider); var group:Grouping = new Grouping(); var gf:GroupingField = new GroupingField("PRICE"); mygroup.grouping = group; mygroup.refresh(); Regards, Nikunj --- In flexcoders@yahoogroups.com, "sreeni_r" <[EMAIL PROTECTED]> wrote: > > If you set GroupingCollection.source to the XMLListCollection and setup > the Grouping and GroupingField properties and call > GroupingCollection.refresh it should just work. > > --- In flexcoders@yahoogroups.com, "nikscares4u" <nikscares4u@> > wrote: > > > > Hi, > > > > I am using an XMLListCollection as a dataprovider in AdvancedDataGrid. > > Is there any way to apply grouping on the AdvancedDataGrid using > > XMLListCollection. When I try to apply it on the XMLListCollection, > > it gives an error : > > > > "Cannot convert XMLListCollection to ArrayCollection" > > > > Any Idea ? > > > > Thanks in advance. > > Nikunj > > >