Spread ASP.NET 6.0 Product Documentation
IsRowUsed Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetDataModel Class : IsRowUsed Method


row
Row index

Glossary Item Box

Determines whether the specified row contains data.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsRowUsed( _
   ByVal row As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetDataModel
Dim row As Integer
Dim value As Boolean
 
value = instance.IsRowUsed(row)
C# 
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.
C#Copy Code
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());
Visual BasicCopy Code
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())

Requirements

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

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.