Spread for ASP.NET 9.0 Product Documentation
IsEmpty Method (BaseSheetDataModel)
Example 


Determines whether the model is empty of data.
Syntax
'Declaration
 
Public Overridable Function IsEmpty() As Boolean
'Usage
 
Dim instance As BaseSheetDataModel
Dim value As Boolean
 
value = instance.IsEmpty()
public virtual bool IsEmpty()

Return Value

true if the model has no data; false otherwise
Remarks
To check if the cell contents are editable, use the IsEditable method.
Example
This example checks to see if the contents are empty for a cell in a specified row and column.
FarPoint.Web.Spread.Model.BaseSheetDataModel bdm;
bool b;
bdm = (FarPoint.Web.Spread.Model.BaseSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
bdm.SetValue(0, 0, "Test Emptiness");
b = bdm.IsEmpty(0, 0);
Response.Write("The cell is empty is " + b.ToString());
Dim bdm As FarPoint.web.Spread.Model.BaseSheetDataModel
Dim b As Boolean
bdm = FpSpread1.ActiveSheetView.DataModel
bdm.SetValue(0, 0, "Test Emptiness")
b = bdm.IsEmpty(0, 0)
Response.Write("The cell is empty is " & b.ToString())
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

BaseSheetDataModel Class
BaseSheetDataModel Members
IsEditable Method

 

 


Copyright © GrapeCity, inc. All rights reserved.