BBjStandardGrid::clearColumnHeader

Description

In BBj 19.0 and higher, removes all data from the grid column header in the BBjStandardGrid.

Syntax

Return Value

Method

void

clearColumnHeader()

void

clearColumnHeader(int p_column)

Parameters

Variable

Description

p_column

Specifies the 0-based column of the header to be cleared.

Return Value

None.

Remarks

Not specifying a column will remove all data from the column header cells in the grid.  Specifying a column will only remove the data from that column’s header cell.

Example

declare BBjSysGui sysgui!
declare BBjWindow win!
declare BBjStandardGrid grid!
declare BBjGridHeader header!
sysgui!=BBjAPI().openSysGui("X0")
win!=sysgui!.addWindow(0,0,640,480,"Grid Testing Program")
grid!=win!.addGrid(101,201,202,0,0,640,400,$8040$,10,3)
grid!.setHasColumnHeader(1)
grid!.setHasRowHeader(1)
grid!.setColumnHeaderCellText(0, "Column 0")
grid!.setColumnHeaderCellText(1, "Column 1")
grid!.setColumnHeaderCellText(2, "Column 2")
grid!.setRowHeaderCellText(0, "Row 0")
grid!.setRowHeaderCellText(1, "Row 1")
grid!.setRowHeaderCellText(2, "Row 2")
grid!.setRowHeaderCellText(3, "Row 3")
grid!.setRowHeaderCellText(4, "Row 4")
grid!.setRowHeaderCellText(5, "Row 5")
grid!.setRowHeaderCellText(6, "Row 6")
grid!.setRowHeaderCellText(7, "Row 7")
grid!.setRowHeaderCellText(8, "Row 8")
grid!.setRowHeaderCellText(9, "Row 9")
grid!.clearColumnHeader(1)
grid!.clearRowHeader(5)
process_events

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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