1 Reply Latest reply on Apr 29, 2009 4:54 PM by Michael Borbor

    Using a __AS3__.vec.Vector as a dataProvider?

    steellynx

      Is there any easy way to use a Vector as a dataProvider for any ListBase type object (ie. DataGrid, ComboBox etc). The Vector documentation makes it sound like generally Vectors are preferrable to Array's, but when you set a Vector object as a dataProvider for a ComboBox or DataGrid, the control doesn't seem to realize that it's a collection.

       

      Is there any kind of wrapper for Vector that implements IList or ICollectionView, or is there any other easy way to populate a List widget from a Vector without having to manually create an Array from your Vector object?

       

      Thanks,

       

      -Max