SpreadJS 13
SpreadJS Documentation / Sample Code / Sample Code for the Sheet / Changing the Grid Line Appearance
In This Topic
    Changing the Grid Line Appearance
    In This Topic

    You can change the color or hide the grid lines.

    Changing the color and hiding the grid lines in a worksheet

    Using Code

    This example sets the grid line color and hides the horizontal grid lines.

    JavaScript
    Copy Code
    $(document).ready(function ()
    {
        var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),
        {sheetCount:3});
        var sheet = spread.getActiveSheet();
      
        // Hide horizontal grid lines.
        sheet.options.gridline = {color:"red", showVerticalGridline: true,
        showHorizontalGridline: false};
        spread.invalidateLayout();
        spread.repaint();
    });
    
    See Also