User Guide
CellRenderer.getDataLabel() 119
Description
Method; returns an object with two fields, columnIndex and itemIndex, that locate the cell
in the component. Each field is an integer that indicates a cellâs column position and item
position. For any components other than the DataGrid component, the value of
columnIndex is always 0.
This method is provided by the List class; you do not have to implement it. Declare it in your
cell renderer class as follows, and use it in the functions in your cell renderer:
var getCellIndex:Function;
Example
This example edits a DataGrid componentâs data provider from within a cell:
var index = getCellIndex();
var colName = listOwner.getColumnAt(index.columnIndex).columnName;
listOwner.dataProvider.editField(index.itemIndex, colName, someVal);
CellRenderer.getDataLabel()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
componentInstance.getDataLabel()
Parameters
None.
Returns
A string.
Description
Method; returns a string containing the name of the cell rendererâs data field. For the
DataGrid component, this method returns the column name for the current cell.
This method is provided by the List class; you do not have to implement it. Declare it in your
cell renderer class as follows, and use it in the functions in your cell renderer:
var getDataLabel:Function;