I want to get all values in one of the columns of a datagrid and put them in an array, to use it as a dataprovider of a combobox, is this possible?
I use an ArrayCollection as the dataprovider of the datagrid, it's filled from the database.
Thanks
You could do it manually,
var result:ArrayCollection = new ArrayCollection()
for each(var o:Object in myArrayCollection) {
result.addItem(o.myField)
}
listen for CollectionEvent.COLLECTION_CHANGE
on you provider to know when it has been updated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.