Spread Windows Forms 10.0 Product Documentation
AllowDeleteToNull Property
Example 


Gets or sets a value that indicates whether to allow a null value when deleting the contents.
Syntax
'Declaration
 
Public Property AllowDeleteToNull As Boolean
'Usage
 
Dim instance As GcNumberCellType
Dim value As Boolean
 
instance.AllowDeleteToNull = value
 
value = instance.AllowDeleteToNull
public bool AllowDeleteToNull {get; set;}

Property Value

true if allowing a null value when deleting; otherwise, false.
Example
This example displays 0 if the cell value is null after deleting.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell.AllowDeleteToNull = false;
fpSpread1.Sheets[0].Cells[0, 0].CellType = ncell;
Dim ncell As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell.AllowDeleteToNull = False
FpSpread1.Sheets(0).Cells(0, 0).CellType = ncell
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcNumberCellType Class
GcNumberCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.