BBjGridData

Description

In BBj 18.0 and higher, this object collects a snapshot of data from a particular group of user specified grid cells.

Creation

BBjAPI > BBjSysGui > BBjWindow > BBjStandardGrid > BBjGridData

A BBjGridData object is created through the BBjGrid using one of the following methods:

Return Value

Method

BBjGridData

getCellRange(int p_startRow, int p_startCol, int p_endRow, int p_endCol)

BBjGridData

geColumnData(int p_col, int p_startRow, int p_endRow)

BBjGridData

getRowData(int p_row)

BBjGridData

getRowData(int p_startRow, int p_endRow)

Methods of BBjGridData

Return Value

Method

boolean

contains(int p_row, int p_col)

BBjGridCell

first()

BBjGridCell

get(int p_row, int p_col)

BBjVector

getList()

int

getSize()

boolean

hasNext()

boolean

isEmpty()

BBjGridCell

last()

BBjGridCell

next()

boolean

remove(int p_row, int p_col)

void

startIteration()

Remarks

None.

Example

sysgui! = bbjapi().openSysGui("X0")
window! = sysgui!.addWindow(10,10,520,300,"Grid Events",$00010082$)
window!.setCallback(window!.ON_CLOSE,"APP_CLOSE")
grid! = window!.addGrid(101,102,103,10,10,500,200,$000e$)
grid!.setRowHeight(20)
cols=30,rows=10
grid!.setNumColumns(cols)
grid!.setNumRows(rows)
grid!.setDefaultColumnWidth(50)
grid!.setUserResizable(1)
cells! = bbjapi().makeVector()
for row=0 to rows-1
    for col=0 to cols-1
        cells!.addItem("C"+STR(col)+" R"+STR(row))
    next col
next row
Data! = getRowData(0)
process_events

APP_CLOSE:
release

See Also

BBjAPI

BBjGrid

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.