Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This topic explains how to insert new rows and columns into a worksheet using the Aspose.Cells.GridWeb API. Rows or columns can be inserted at any position in the worksheet.
To insert a row at any position in a worksheet:
To insert a column at any position in a worksheet:
insertRows()/insertColumns() methods to insert multiple rows/columns into the worksheets accordingly.
This topic demonstrates how to delete rows and columns from a worksheet using the Aspose.Cells.GridWeb API. With the help of this feature, developers can delete rows or columns at runtime.
To delete a row from your worksheet:
To delete a column from your worksheet:
Sometimes cell values are wider than the cell they are in or span several lines. Such values are not fully visible to users unless they change the height and width of rows and columns. Aspose.Cells.GridWeb fully supports setting row heights and column widths. This topic discusses these features in detail with the help of examples.
To set the height of a row:
Output: The height of the 1st row has been set to 50 points

To set the width of a column:
Like Microsoft Excel, Aspose.Cells.GridWeb also uses standard headers or captions for rows (numbers like 1, 2, 3, and so on) and columns (alphabetic like A, B, C, and so on). Aspose.Cells.GridWeb also makes it possible to customize captions. This topic discusses customizing row and column headers at runtime using the Aspose.Cells.GridWeb API.
To customize the header or caption of a row:
The headers of row 1 and 2 have been customized

To customize the header or caption of a column:
The headers of column 1 and 2 have been customized

This topic explains how to freeze and unfreeze rows and columns. Freezing columns or rows allows users to keep the column headings or row titles visible while they scroll to other parts of the worksheet. This feature is very helpful when working with worksheets that contain large volumes of data. When users scroll, only data is scrolled while the headings stay in place, making the data easier to read. The freeze panes feature is only supported in Internet Explorer 6.0 or later.
To freeze a specific number of rows and columns:
Rows & columns in a frozen state

To unfreeze rows and columns:
Worksheet after being unfrozen

This topic discusses techniques for protecting cells in rows and columns from any kind of action performed by end users. Developers can implement this protection using two approaches: making cells in rows and columns read‑only, or restricting the GridWeb’s context‑menu options.
GridWeb provides a context menu that end users can use to perform operations on the control. The menu offers many options for manipulating cells, rows, and columns.
Complete contextual options

It is possible to restrict any client‑side operations on rows and columns by limiting the options available in the context menu. This can be done by setting the EnableClientColumnOperations and EnableClientRowOperations attributes of the GridWeb control to false. It is also possible to restrict users from freezing rows and columns by setting the GridWeb control’s EnableClientFreeze attribute to false.
Context menu after restricting row & column options

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.