Spread.Sheets Documentation
setColumnValue Method
The column index of the table footer. The index is zero-based.
The table footer value.
Sets the table footer value with the specified index.
Syntax
var instance = new GC.Spread.Sheets.Tables.Table(name, row, col, rowCount, colCount, style, options);
var returnValue; // Type: Table
returnValue = instance.setColumnValue(tableColumnIndex, value);
function setColumnValue( 
   tableColumnIndex : number,
   value : Object
) : Table;

Parameters

tableColumnIndex
The column index of the table footer. The index is zero-based.
value
The table footer value.

Return Value

The table.
Example
This example creates a table.
//Add data
for (var col = 1; col < 6; col++) {
    for (var row = 2; row < 11; row++) {
        activeSheet.setValue(row, col, row + col);
    }
}

var sTable = activeSheet.tables.add("table1", 1, 1, 10, 5, GC.Spread.Sheets.Tables.TableThemes.medium2);
sTable.showFooter(true);
//set footer value
sTable.setColumnValue(0, "Total");
//set footer formula
sTable.setColumnFormula(4, "SUM(F3:F11)");
See Also

Reference

Table type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.