Add Protection in Worksheet

Protect Cells using Aspose.Cells.GridDesktop

The following sample code protects all the cells in range A1:B1 of the active worksheet of GridDesktop. When you double‑click any cell in this range, you will not be able to edit it. It will make these cells read‑only.