Spread for ASP.NET 8.0 Product Documentation
GetModelRowFromViewRow Method
Example 


Gets a row index in a model for a specified row in a sheet.
Overload List
OverloadDescription
GetModelRowFromViewRowGets a row index in a model for a specified row in a sheet.  
Example
This example returns the index for the specified row.
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());
}
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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.