SpreadJS Documentation
setBindingPath Method
The row index.
The column index.
The binding path for the cell binding source.
Sets the binding path for cell-level binding in a specified cell in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.setBindingPath(row, col, path);
function setBindingPath( 
   row : number,
   col : number,
   path : string
) : any;

Parameters

row
The row index.
col
The column index.
path
The binding path for the cell binding source.
Example
This example binds a cell.
var test = {name: "John", gender: "male"};
sheet.setBindingPath(0, 0, "name");
sheet.setBindingPath(0, 1, "gender");
sheet.setDataSource(new GcSpread.Sheets.CellBindingSource(test));
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.