SpreadJS Documentation
Changing Row Height and Column Width
SpreadJS Documentation > Sample Code > Sample Code for Rows and Columns > Changing Row Height and Column Width

You can change the row height and column width.

Using Code

This example sets the row height and column width.

JavaScript
Copy Code
$(document).ready(function () {
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
    var sheet = spread.getActiveSheet();

    //Change the height of the second row.
    sheet.setRowHeight(1, 90.0,GC.Spread.Sheets.SheetArea.viewport);

    //Change the width of the second column.
    sheet.setColumnWidth(1, 120.0,GC.Spread.Sheets.SheetArea.viewport);
});
See Also

Developer's Guide