SpreadJS Documentation
setColumnVisible Method
The column index.
Whether to display the column.
The sheet area. If this parameter is not given, it defaults to viewport.
Sets whether a column in the specified sheet area is displayed.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var returnValue; // Type: any
returnValue = instance.setColumnVisible(col, value, sheetArea);
function setColumnVisible( 
   col : number,
   value : boolean,
   sheetArea : SheetArea
) : any;

Parameters

col
The column index.
value
Whether to display the column.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.
Example
This example sets the specified column to be hidden.
activeSheet.setColumnVisible(2,false,GcSpread.Sheets.SheetArea.viewport);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.