Usage
myDataGrid.getColumnAt(index).labelFunction
Description
Property; specifies a function to determine which field (or field combination) of each item to
display. This function receives one parameter,
return a string representing the text to display. This property can be used to create virtual columns
that have no equivalent field in the item.
Note: The specified function operates in a nondefined scope.
Example
The following example creates a virtual column:
var myCol = myGrid.addColumn("Subtotal");
myCol.labelFunction = function(item) {
return "$" + (item.price + (item.price * salesTax));
};
DataGridColumn.resizable
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.getColumnAt(index).resizable
Description
Property; a Boolean value that indicates whether a column can be resized by a user (
(
). The
false
DataGrid.resizableColumns
take effect. The default value is
Example
The following example prevents the column at index 1 from being resized:
myGrid.getColumnAt(1).resizable = false;
DataGridColumn.sortable
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.getColumnAt(index).sortable
, which is the item being rendered, and must
item
property must be set to
.
true
DataGrid component (Flash Professional only)
) or not
true
for this property to
true
283
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?