target.setStyle(style, source.getStyle(style));
}
For more information about class-level styles, see
on page
71.
Using skins with the DataGrid component
The skins that the DataGrid component uses to represent its visual states are included in the
subcomponents that constitute the data grid (scroll bars and RectBorder). For information about
their skins, see
"Using skins with the UIScrollBar component" on page 831
class" on page
647.
DataGrid class (Flash Professional only)
Inheritance
MovieClip >
ScrollSelectList >
ActionScript Class Name
Each component class has a
available only on the class itself. The
of the component. To access this property, use the following code:
trace(mx.controls.DataGrid.version);
Note: The code
trace(myDataGridInstance.version);
Method summary for the DataGrid class
The following table lists methods of the DataGrid class.
Method
DataGrid.addColumn()
DataGrid.addColumnAt()
DataGrid.addItem()
DataGrid.addItemAt()
DataGrid.editField()
DataGrid.getColumnAt()
DataGrid.getColumnIndex()
DataGrid.removeAllColumns()
DataGrid.removeColumnAt()
DataGrid.replaceItemAt()
DataGrid.spaceColumnsEqually()
254
Chapter 6: Components Dictionary
UIObject class
List component
> DataGrid
mx.controls.DataGrid
property, which is a class property. Class properties are
version
version
Description
Adds a column to the data grid.
Adds a column to the data grid at a specified location.
Adds an item to the data grid.
Adds an item to the data grid at a specified location.
Replaces the cell data at a specified location.
Gets a reference to a column at a specified location.
Gets a reference to the DataGridColumn object at the specified
index.
Removes all columns from a data grid.
Removes a column from a data grid at a specified location.
Replaces an item at a specified location with another item.
Spaces all columns equally.
"Setting styles for a component class"
>
UIComponent class
property returns a string that indicates the version
returns
undefined
and
"RectBorder
> View > ScrollView >
.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers