Spread Windows Forms 12.0 Product Documentation
Locked Property (Row)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Row Class : Locked Property
Gets or sets whether cells in this row are marked as locked.
Public Property Locked As Boolean
Dim instance As Row
Dim value As Boolean
instance.Locked = value
value = instance.Locked
public bool Locked {get; set;}

Property Value

Boolean: true if marked as locked; false otherwise

You can specify that certain rows of cells are locked; that is, the user cannot edit them. You mark rows of cells as locked by setting this property to true. Rows of cells are not locked until the SheetView Protect property is also set to true for the sheet. Because the default value of the Protect property is true, unless you have changed the value of the Protect property, when you mark a row of cells as locked, they are locked and the user cannot edit them. When the Protect property is false, the user can still interact with cells marked as locked.

Be aware that the setting for this property can be overridden if a named style is assigned to the cell using the StyleName property, and that named style sets the locked status.

This example locks the rows in the range.
FarPoint.Win.Spread.Row r;
r = fpSpread1.ActiveSheet.Rows[0, 3];
r.Locked = true;
Dim r As FarPoint.Win.Spread.Row
r = FpSpread1.ActiveSheet.Rows(0, 3)
r.Locked = True
See Also


Row Class
Row Members
Protect Property