Or you usre dataGrid.dataProvider is a XMLListCollection?

>From the error thrown it looks like the datagrid.dataProvider is a 
ArrayCollection and you are trying to cast it to XMLListCollection.

--- In flexcoders@yahoogroups.com, "nikscares4u" <[EMAIL PROTECTED]> 
wrote:
>
> 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" <sreeni_r@> 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
> > >
> >
>


Reply via email to