BiGrid2
This component is a special case of BiTreeView which has an interface which is similar to BiGrid
This class extends BiTreeView and therefore all methods and fields available for BiTreeView are also available for BiGrid2 .
Constructor
new BiGrid2 ( oGridData,oColumnNames )
Parameters
| Name | Type | Optional | Default | Descripton |
oGridData | Object[][] | Optional data to initialize the grid with. | ||
oColumnNames | String[] | Optional string array telling what to show on the grid headers. |
Properties
| Name | Type | get | set | Descripton |
columnCount | Number | ![]() | ![]() | The number of columns in the grid |
columnNames | String[] | ![]() | ![]() | The text to show on the headers of the grid |
columnOrders | Number[] | ![]() | ![]() | The order of the columns. This an array containing the indexes of the columns. |
columnWidths | String[] | ![]() | ![]() | The widths of the columns of the grid |
rows | | ![]() | The rows in the grid | |
showGridLines | Boolean | ![]() | ![]() | Whether to show grid lines between the cells in the grid |
showHeaders | Boolean | ![]() | ![]() | Whether to show the headers for the grid |
showRowHeaders | Boolean | ![]() | ![]() | Whether to show the row headers for the grid |
Methods
| Name | Description |
addRow | Adds a row to the grid |
removeAll | This removes all the rows |
removeRow | Removes a row item from the grid |
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
None.
Method Details
addRow
Adds a row to the grid
Syntax
object.addRow ( oChild,oBefore ) Parameters
| Name | Type | Optional | Default | Descripton |
oChild | | The row to add to the grid | ||
oBefore | | Optional argument telling what row to insert before |
Return Type
void
removeAll
This removes all the rows
Syntax
object.removeAll ( ) Parameters
No arguments.
Return Type
void
removeRow
Removes a row item from the grid
Syntax
object.removeRow ( oChild ) Parameters
| Name | Type | Optional | Default | Descripton |
oChild | | The row to remove |
Return Type
void
