SpreadJS Documentation
GC.Spread.Sheets Namespace / Events type / ColumnChanged Event
The sheet that triggered the event.
The sheet's name.
The column index.
The sheetArea of the column.
The name of the column's property that has changed.
Whether this event is from a undo operation.
In This Topic
    ColumnChanged Event
    In This Topic
    Occurs when a change is made to a column or range of columns in this sheet that may require the column or range of columns to be repainted.
    Syntax
    var instance; // Type: Events
    instance.ColumnChanged = function(sheet, sheetName, col, sheetArea, propertyName, isUndo) { };
    ColumnChanged = function ( 
       sheet : Worksheet,
       sheetName : string,
       col : number,
       sheetArea : SheetArea,
       propertyName : string,
       isUndo : boolean
    ) { };

    Parameters

    sheet
    The sheet that triggered the event.
    sheetName
    The sheet's name.
    col
    The column index.
    sheetArea
    The sheetArea of the column.
    propertyName
    The name of the column's property that has changed.
    isUndo
    Whether this event is from a undo operation.
    Example
    This example uses the ColumnChanged event.
    activeSheet.bind(GC.Spread.Sheets.Events.ColumnChanged, function (e, info) {
        if(info.sheetArea === GC.Spread.Sheets.SheetArea.viewport){
            alert("Index (" + info.col + ")");
        }
    });
    See Also

    Reference

    Events type