Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > DataSet component > DataSet.selectedIndex | |||
Flash Player 7.
Flash MX Professional 2004.
dataSetInstance.selectedIndex
Property; specifies the selected index in the collection. You can bind this property to the selected item in a DataGrid or List component, and vice versa. For a complete example that demonstrates this, see Creating an application with the DataSet component.
The following example sets the selected index of a DataSet object (user_ds) to the selected index in a DataGrid component (user_dg).
user_ds.selectedIndex = user_dg.selectedIndex;
Flash CS3