User Guide
DataSet.dataProvider 353
Description
Property (read-only); returns the current item in the DataSet collection, or null if the
collection is empty or if the current iterator’s view of the collection is empty.
This property provides direct access to the item in the collection. Changes made by directly
accessing this object are not tracked (in the
DataSet.deltaPacket property), nor are any of
the schema settings applied to any properties of this object.
Example
The following example displays the value of the name property defined in the current item in
the data set named
customers_ds.
customers_ds.addItem({name:"Milton", years:3});
customers_ds.addItem({name:"Mark", years:3});
customers_ds.addItem({name:"Sarah", years:1});
customers_ds.addItem({name:"Michael", years:2});
customers_ds.addItem({name:"Frank", years:2});
trace(customers_ds.currentItem.name); // Frank
DataSet.dataProvider
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.dataProvider
Description
Property; the data provider for this data set. This property provides data to user interface
controls, such as the List and DataGrid components.
For more information about the DataProvider API, see “DataProvider API” on page 317.
Example
The following code assigns the dataProvider property of a DataSet object to the
corresponding property of a DataGrid component.
my_dg.dataProvider = my_ds.dataProvider;