为DataGrid提供一个ComboBox类型的ItemRenderer,以下图:ide
可是在点击ComboBox的时候取不到DataGrid当前的selectedIndex,不能实现须要的功能。spa
利用下面代码可取得当前项在DataGrid的dataProvider中的索引。xml
var itemIndex:int = ArrayCollection((owner as DataGrid).dataProvider).getItemIndex(_ownerData);