SpreadJS Documentation
getBindingPath Method
The row index.
The column index.
Gets the binding path of cell-level binding from the specified cell in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: string
value = instance.getBindingPath(row, col);
function getBindingPath( 
   row : number,
   col : number
) : string;

Parameters

row
The row index.
col
The column index.

Return Value

Returns the binding path of the cell for cell-level binding.
Example
This example uses the getBindingPath method.
var person = {name: "Wang feng", age: 25, address: {postcode: "710075"}};
var source = new GcSpread.Sheets.CellBindingSource(person);
activeSheet.setBindingPath(0, 0, "name");
activeSheet.setBindingPath(1, 1, "age");
activeSheet.setBindingPath(3, 3, "address.postcode");
activeSheet.setDataSource(source);
alert(activeSheet.getBindingPath(0, 0, GcSpread.Sheets.SheetArea.viewport));
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.