User Guide
256 Chapter 6: Components Dictionary
Property summary for the DataGrid class
The following table lists the properties of the DataGrid class.
Properties inherited from the UIObject class
The following table lists the properties the DataGrid class inherits from the UIObject class. When
accessing these properties from the DataGrid object, use the form
dataGridInstance.propertyName.
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).
Property Description
UIObject.bottom The position of the bottom edge of the object, relative to the
bottom edge of its parent. Read-only.
UIObject.height The height of the object, in pixels. Read-only.
UIObject.left The left edge of the object, in pixels. Read-only.
UIObject.right The position of the right edge of the object, relative to the right
edge of its parent. Read-only.
Method Description