2013-08-29 36 views

回答

1

使用selectedIndices属性。它会给出一个Vector;这就像是一个Typed Array。如果你确实需要一个ArrayCollection,你可以编写一个转换例程。如果您使用的是Apache Flex,还可以使用一个VectorCollection类。

1
var yourAC : ArrayCollection = new ArrayCollection(); 
for each (var elem:Object in yourDataGrid.selectedIndices) { 
    yourAC.addItem(elem); 
} 
相关问题