[flexcoders] Multiple views of same data

2009-02-05 Thread Annette Spooner
Hi,

I have an application that requires multiple views of the same data. Thus,
in practice, I would ideally like to have two DataGrids, each with the same
ArrayCollection as dataProvider, but each sorted differently. I know that
sorting a DataGrid sorts the underlying dataProvider, so is there any way to
achieve this without having two copies of the data and having to update the
second when changes are made to the first.

Thanks for your help.

Regards,

Annette



Re: [flexcoders] Multiple views of same data

2009-02-05 Thread Paul Andrews
- Original Message - 
  From: Annette Spooner 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, February 05, 2009 11:18 PM
  Subject: [flexcoders] Multiple views of same data


  Hi,

  I have an application that requires multiple views of the same data. Thus, in 
practice, I would ideally like to have two DataGrids, each with the same 
ArrayCollection as dataProvider, but each sorted differently. I know that 
sorting a DataGrid sorts the underlying dataProvider, so is there any way to 
achieve this without having two copies of the data and having to update the 
second when changes are made to the first.

  Thanks for your help.

  Regards,

  Annette

ListCollectionView.

This link should set you on your way Annette:

http://viconflex.blogspot.com/2006/11/listcollectionview-different.html

Or search the flexcoders archives for ListCollectionView.

Paul