Add Protection in Worksheet

Protect Cell using Aspose.Cells.GridDesktop

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