Spread.Sheets Documentation
getDataColumnName Method
The column index for which the name is requested.
Gets the column name at the specified position.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: string
value = instance.getDataColumnName(column);
function getDataColumnName( 
   column : number
) : string;

Parameters

column
The column index for which the name is requested.

Return Value

The column name for data binding.
Example
This example returns the name for the specified bound column.
var test = [
        {"Series0":2,"Series1":1},
        {"Series0":4,"Series1":2},
        {"Series0":3,"Series1":4}
    ];

activeSheet.setDataSource(test);
activeSheet.bindColumn(1,"Series0");
activeSheet.bindColumn(0,"Series1");
var colname = activeSheet.getDataColumnName(0);
alert(colname);
See Also

Reference

Worksheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.