Spread.Sheets 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 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(); }); |