SpreadJS Documentation > Sample Code > Sample Code for the Sheet > Changing the Grid Line Appearance |
You can change the color or hide the grid lines.
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"}); }); |