Spread.Sheets Documentation
dataRange Method
Gets the cell range for the table data area.
Syntax
var instance = new GC.Spread.Sheets.Tables.Table(name, row, col, rowCount, colCount, style, options);
var value; // Type: Range
value = instance.dataRange();
function dataRange() : Range;

Return Value

The table data range.
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.TableTheme.medium2);
var drange = sTable.dataRange();
alert(drange.row);
See Also

Reference

Table type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.