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

In This Topic
    GetViewRowFromModelRow Method
    In This Topic
    Gets a sheet row index for the specified model row.
    Public Function GetViewRowFromModelRow( _
       ByVal row As Integer _
    ) As Integer
    Dim instance As SheetView
    Dim row As Integer
    Dim value As Integer
    value = instance.GetViewRowFromModelRow(row)
    public int GetViewRowFromModelRow( 
       int row


    Row index in model

    Return Value

    Integer row index in the sheet corresponding to the specified row in the model
    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