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

NameTypeOptionalDefaultDescripton
oGridDataObject[][]Optional data to initialize the grid with.
oColumnNamesString[]Optional string array telling what to show on the grid headers.

Properties

NameTypegetsetDescripton
columnCountNumbercheckedcheckedThe number of columns in the grid
columnNamesString[]checkedcheckedThe text to show on the headers of the grid
columnOrdersNumber[]checkedcheckedThe order of the columns. This an array containing the indexes of the columns.
columnWidthsString[]checkedcheckedThe widths of the columns of the grid
rowsBiGrid2Row[]checkedThe rows in the grid
showGridLinesBooleancheckedcheckedWhether to show grid lines between the cells in the grid
showHeadersBooleancheckedcheckedWhether to show the headers for the grid
showRowHeadersBooleancheckedcheckedWhether to show the row headers for the grid

Methods

NameDescription
addRowAdds a row to the grid
removeAllThis removes all the rows
removeRowRemoves 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

NameTypeOptionalDefaultDescripton
oChildBiGrid2RowThe row to add to the grid
oBeforeBiGrid2RowOptional 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

NameTypeOptionalDefaultDescripton
oChildBiGrid2RowThe row to remove

Return Type

void