User Guide

264 DataGrid component (Flash Professional only)
Property summary for the DataGrid class
The following table lists the properties of the DataGrid class.
List.removeAll() Removes all items from the list.
List.removeItemAt() Removes the item at the specified index.
List.replaceItemAt() Replaces the item at the specified index with another item.
List.setPropertiesAt() Applies the specified properties to the specified item.
List.sortItems() Sorts the items in the list according to the specified
compare function.
List.sortItemsBy() Sorts the items in the list according to a specified property.
Property Description
DataGrid.columnCount Read-only; the number of columns that are displayed.
DataGrid.columnNames An array of field names within each item that are displayed
as columns.
DataGrid.dataProvider The data model for a data grid.
DataGrid.editable A Boolean value that indicates whether the data grid is
editable (
true) or not (false).
DataGrid.focusedCell Defines the cell that has focus.
DataGrid.headerHeight The height of the column headers, in pixels.
DataGrid.hScrollPolicy Indicates whether a horizontal scroll bar is present ("on"),
not present (
"off"), or appears when necessary ("auto").
DataGrid.resizableColumns A Boolean value that indicates whether the columns are
resizable (
true) or not (false).
DataGrid.selectable A Boolean value that indicates whether the data grid is
selectable (
true) or not (false).
DataGrid.showHeaders A Boolean value that indicates whether the column
headers are visible (
true) or not (false).
DataGrid.sortableColumns A Boolean value that indicates whether the columns are
sortable (
true) or not (false).
Method Description