SpreadJS Documentation
addColumns Method
Column index at which to add the new columns.
The number of columns to add.
Adds the column or columns to the data model at the specified index.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.addColumns(col, count);
function addColumns( 
   col : number,
   count : number
) : any;

Parameters

col
Column index at which to add the new columns.
count
The number of columns to add.
Example
This example adds columns.
sheet.setValue(0, 0, "value");
sheet.addRows(0, 2);
sheet.addColumns(0, 2);
sheet.setRowHeight(0, 50.0,GcSpread.Sheets.SheetArea.viewport);
sheet.setColumnWidth(0, 150.0,GcSpread.Sheets.SheetArea.viewport);
sheet.getRow(0).backColor("Gray");
sheet.getColumn(0).backColor ("Brown");
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.