Spread.Sheets Documentation
Preventing Resizing
Spread.Sheets Documentation > Sample Code > Sample Code for Rows and Columns > Preventing Resizing

You can prevent resizing.

Using Code

This example prevents resizing.

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

    //Prohibit resizing of Column 2.
    sheet.setColumnResizable(1, false);

    //Prohibit resizing of Row 2 to Row 3.
    sheet.setRowResizable(1, false);
    sheet.setRowResizable(2, false);
});
See Also

Developer's Guide