SpreadJS Documentation
autoGenerateColumns Field
GC.Spread.Sheets Namespace > Worksheet type : autoGenerateColumns Field
Indicates whether to generate columns automatically while binding data context.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: boolean
value = instance.autoGenerateColumns;
var autoGenerateColumns : boolean;
Example

This example sets a data source for the sheet.
var activeSheet = spread.getActiveSheet();

var test = [
       { "Series0": 2, "Series1": 1 },
       { "Series0": 4, "Series1": 2 },
       { "Series0": 3, "Series1": 4 }
            ];
activeSheet.autoGenerateColumns = true;
activeSheet.setDataSource(test, true);
Remarks
The default value is true.
See Also

Reference

Worksheet type