Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / GetViewRowFromModelRow(Int32) Method
Row index in model
Example


In This Topic
    GetViewRowFromModelRow(Int32) Method
    In This Topic
    Gets the row on the sheet that corresponds to the specified row index in the model.
    Syntax
    'Declaration
     
    Public Overridable Function GetViewRowFromModelRow( _
       ByVal modelrow As Integer _
    ) As Integer
    'Usage
     
    Dim instance As SheetView
    Dim modelrow As Integer
    Dim value As Integer
     
    value = instance.GetViewRowFromModelRow(modelrow)
    public virtual int GetViewRowFromModelRow( 
       int modelrow
    )

    Parameters

    modelrow
    Row index in model
    Example
    This example uses the GetViewRowFromModelRow method.
    fpSpread1.ActiveSheet.SetColumnAllowAutoSort(1, true);
    
    private void button1_Click(object sender, EventArgs e)
    {
         listBox1.Items.Add(fpSpread1.Sheets[0].GetViewRowFromModelRow(1));
    }
    fpSpread1.ActiveSheet.SetColumnAllowAutoSort(1, True)
    
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      ListBox1.Items.Add(fpSpread1.Sheets(0).GetViewRowFromModelRow(1))
    End Sub
    See Also