FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : AllowDelete Property |
'Declaration Public Property AllowDelete As Boolean
'Usage Dim instance As SheetView Dim value As Boolean instance.AllowDelete = value value = instance.AllowDelete
public bool AllowDelete {get; set;}
Set this property to true to let users delete a row in the sheet. When you set this property to true, the sheet also displays the Delete command button in the command bar.
This property only has an effect if the OperationMode property is set to a value other than ReadOnly or SingleSelect.
FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
sv.ActiveColumn = 2;
sv.ActiveRow = 2;
sv.SetValue(sv.ActiveColumn, sv.ActiveRow, "Active");
sv.OperationMode = FarPoint.Web.Spread.OperationMode.Normal;
sv.AllowInsert = True;
sv.AllowDelete = True;
Dim sv As FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView sv.ActiveColumn = 2 sv.ActiveRow = 2 sv.SetValue(sv.ActiveColumn, sv.ActiveRow, "Active") sv.OperationMode = FarPoint.Web.Spread.OperationMode.Normal sv.AllowInsert = True sv.AllowDelete = True
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
SheetView Class
SheetView Members
OperationMode Property
AllowInsert property