Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / GetViewRowFromModelRow Method
Row index in model
Example


In This Topic
    GetViewRowFromModelRow Method
    In This Topic
    Gets a sheet row index for the specified model row.
    Syntax
    'Declaration
     
    Public Function GetViewRowFromModelRow( _
       ByVal row As Integer _
    ) As Integer
    'Usage
     
    Dim instance As SheetView
    Dim row As Integer
    Dim value As Integer
     
    value = instance.GetViewRowFromModelRow(row)
    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.
    FarPoint.Web.Spread.SheetView sv;
    sv = FpSpread1.ActiveSheetView;
    int i;
    i = sv.GetViewRowFromModelRow(0);
    Response.Write("The index is " + i.ToString());
    
    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())
    See Also