Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_WORKSHEET > of_hide_gridlines

of_hide_gridlines() method

Hide the gridlines on the screen and printed page. Gridlines are the lines that divide the cells on a worksheet. Screen and printed gridlines are turned on by default in an Excel worksheet. If you have defined your own cell borders you may wish to hide the default gridlines.

Syntax

Worksheet.of_hide_gridlines ( Option )

Parameters

OptionThe following values of option are valid:
0 : Don't hide gridlines
1 : Hide printed gridlines only
2 : Hide screen and printed gridlines

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Examples

worksheet.of_hide_gridlines ( 2 )