2014-03-03 49 views

回答

0

您可以將selectedIndex存儲在全局變量中。然後打開彈出窗口並返回後,您將能夠設置selectedIndex。

例:

FlexGlobals.topLevelApplication.selectedIndexOfDataGrid = dataGrid.selectedIndex; 
... opening pupup ... etc... 
dataGrid.selectedIndex = FlexGlobals.topLevelApplication.selectedIndexOfDataGrid; 

凡selectedIndexOfDataGrid是你的主要的.mxml文件中的公共變量。

public var selectedIndexOfDataGrid:Number; 
+0

嗨伊萬。非常感謝你。我會使用你的解決方案然後回來告訴它發生了什麼。 – user3375947