SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / setBindingPath Method
The row index.
The column index.
The binding path for the cell binding source.
In This Topic
    setBindingPath Method
    In This Topic
    Sets the binding path for cell-level binding in a specified cell in the specified sheet area.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: Worksheet
    value = instance.setBindingPath(row, col, path);
    function setBindingPath( 
       row : number,
       col : number,
       path : string
    ) : Worksheet;

    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 GC.Spread.Sheets.Bindings.CellBindingSource(test));
    See Also

    Reference

    Worksheet type