Spread.Sheets Documentation
getDataSource Method
Gets the data source that populates the sheet.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: Object
value = instance.getDataSource();
function getDataSource() : Object;

Return Value

Returns the data source.
Example
This example gets the data source.This example uses the getDataSource method.
var test = [
        {"Series0":2,"Series1":1},
        {"Series0":4,"Series1":2},
        {"Series0":3,"Series1":4}
    ];
activeSheet.setDataSource(test);
alert(activeSheet.getDataSource);
var test = [
        {"Series0":2,"Series1":1},
        {"Series0":4,"Series1":2},
        {"Series0":3,"Series1":4}
    ];
activeSheet.setDataSource(test);
alert(activeSheet.getDataSource);
See Also

Reference

Worksheet type
Binding Cells

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.