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


row
Row index

Glossary Item Box

Gets whether the specified row is bound to a data source.

Syntax

Visual Basic (Declaration) 
Public Function IsRowBound( _
   ByVal row As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim value As Boolean
 
value = instance.IsRowBound(row)
C# 
public bool IsRowBound( 
   int row
)

Parameters

row
Row index

Return Value

true if the row is bound; otherwise false

Example

This example returns whether the specified row is bound.
C#Copy Code
DataTable dt = new DataTable();
DataRow dr;
dt.Columns.Add("Test");
dr = dt.NewRow();
dr[0] = 1;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[0] = 2;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[0] = 3;
dt.Rows.Add(dr);
FpSpread1.Sheets[0].DataSource = dt; 

FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
bool b;
b = sv.IsRowBound(0);
Response.Write("Is the row bound is " + b.ToString());
Visual BasicCopy Code
Dim dt As New DataTable
Dim dr As DataRow
dt.Columns.Add("Test")
dr = dt.NewRow
dr.Item(0) = 1
dt.Rows.Add(dr)
dr = dt.NewRow
dr.Item(0) = 2
dt.Rows.Add(dr)
dr = dt.NewRow
dr.Item(0) = 3
dt.Rows.Add(dr)
FpSpread1.ActiveSheetView.DataSource = dt

Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
Dim b As Boolean
b = sv.IsRowBound(0)
Response.Write("Is the row bound 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.