Visual Basic (Declaration) | |
---|---|
Public Property AllowInsert As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SheetView Dim value As Boolean instance.AllowInsert = value value = instance.AllowInsert |
C# | |
---|---|
public bool AllowInsert {get; set;} |
Property Value
Boolean: true to allow users to insert a row; false otherwiseSet this property to true to let users insert a row in the sheet. When you set this property to true, the sheet displays the Insert command button and an Add Row button on the command bar. When clicked, the Insert button inserts a new row depending on where focus is; when clicked, the Add button adds a new row to the end of the sheet. When inserting a row, the sheet adds the row above the row containing the active cell.
This property only has an effect if the OperationMode property is set to a value other than ReadOnly or SingleSelect.
C# | Copy Code |
---|---|
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;
|
Visual Basic | Copy Code |
---|---|
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
Reference
SheetView ClassSheetView Members
AllowDelete Property