Spread Windows Forms 11.0 Product Documentation
AllowDeleteToNull Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType Class : AllowDeleteToNull Property
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
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members