Spread for ASP.NET 11 Product Documentation
IsRowUsed Method (BaseSheetDataModel)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetDataModel Class : IsRowUsed Method
Row index
Determines whether the specified row contains data.
Syntax
'Declaration
 
Public Overridable Function IsRowUsed( _
   ByVal row As Integer _
) As Boolean
'Usage
 
Dim instance As BaseSheetDataModel
Dim row As Integer
Dim value As Boolean
 
value = instance.IsRowUsed(row)
public virtual bool IsRowUsed( 
   int row
)

Parameters

row
Row index

Return Value

true if the row contains data; false otherwise
Example
This example checks to see if the specified row contains data.
FarPoint.Web.Spread.Model.BaseSheetDataModel bdm;
bool b;
bdm = (FarPoint.Web.Spread.Model.BaseSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
bdm.SetValue(0, 0, "Test Row Empty");
b = bdm.IsRowUsed(0);
Response.Write("The row used is " + b.ToString());
Dim bdm As FarPoint.web.Spread.Model.BaseSheetDataModel
Dim b As Boolean
bdm = FpSpread1.ActiveSheetView.DataModel
bdm.SetValue(0, 0, "Test Row Empty")
b = bdm.IsRowUsed(0)
Response.Write("The row used is " & b.ToString())
See Also

Reference

BaseSheetDataModel Class
BaseSheetDataModel Members