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


row
Row index in model

Glossary Item Box

Gets a sheet row index for the specified model row.

Syntax

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

Parameters

row
Row index in model

Return Value

Integer row index in the sheet corresponding to the specified row in the model

Example

This example returns the sheet row index for a specified model row.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
int i;
i = sv.GetViewRowFromModelRow(0);
Response.Write("The index is " + i.ToString());
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
Dim i As Integer
i = sv.GetViewRowFromModelRow(0)
Response.Write("The index is " & i.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.