SpreadJS Documentation
showColumn Method
The column index.
The horizontal position in which to display the column.
Moves the view of a column to the specified position in the viewport.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.showColumn(col, horizontalPosition);
function showColumn( 
   col : number,
   horizontalPosition : HorizontalPosition
) : any;

Parameters

col
The column index.
horizontalPosition
The horizontal position in which to display the column.
Example
This example uses the showColumn method.
$("#button1").click(function () {    
    activeSheet.showRow(9, GcSpread.Sheets.VerticalPosition.top);
});

$("#button2").click(function(){
    activeSheet.showColumn(9, GcSpread.Sheets.HorizontalPosition.left);
});

//Add button controls to page
<input type="button" id="button1" value="button1"/>
<input type="button" id="button2" value="button2"/>
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.