[]
        
(Showing Draft Content)

Protect Sheets and Cell Locking

You can protect sheets and lock cells in FlexSheet for WPF. IsProtected property is used to protect sheets in C1FlexSheet control. The following code illustrates the use of IsProtected property:

vbnet

protectedSheet.IsProtected = True

csharp

protectedSheet.IsProtected = true;

AddLockedCell method can be used to lock cells in C1FlexSheet control. The AddLockedCell method locks the specified cell range, as illustrated in the following code:

vbnet

protectedSheet.AddLockedCell(0, 0, 1, 1)

csharp

protectedSheet.AddLockedCell(0, 0, 1, 1);