SpreadJS Documentation
Changing the Grid Line Appearance

You can change the color or hide the grid lines.

Using Code

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

JavaScript
Copy Code

$(document).ready(function () {
    var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3});
    var sheet = spread.getActiveSheet();

    //Hide horizontal grid lines.
    sheet.setGridlineOptions({showHorizontalGridline: false});

    //Hide vertical grid lines.
    //sheet.setGridlineOptions({showVerticalGridline: false});

    //Change the color of grid lines to red.
    sheet.setGridlineOptions({color: "red"});
});
See Also

Developer's Guide

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.