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


row
Row index in sheet

Glossary Item Box

Gets a row index in a model for a specified row in a sheet.

Syntax

Visual Basic (Declaration) 
Public Function GetModelRowFromViewRow( _
   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.GetModelRowFromViewRow(row)
C# 
public int GetModelRowFromViewRow( 
   int row
)

Parameters

row
Row index in sheet

Return Value

Integer row index for the original model corresponding to the specified sheet row

Example

This example returns the index for the specified row.
C#Copy Code
private void FpSpread1ChildViewCreated(object sender, FarPoint.Web.Spread.CreateChildViewEventArgs e)
{
      FarPoint.Web.Spread.SheetView sv;
      sv = e.SheetView;
      int i;
      i = sv.GetModelRowFromViewRow(1);
      Response.Write("The index in the model for the specified row is " + i.ToString());
}
Visual BasicCopy Code
Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateChildViewEventArgs) Handles
FpSpread1.ChildViewCreated
      Dim sv As FarPoint.Web.Spread.SheetView
      Dim i As Integer
      sv = e.SheetView
      i = sv.GetModelRowFromViewRow(1)
      Response.Write("The index in the model for the specified row is " & i.ToString())
End Sub

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.