Spread Windows Forms 11.0 Product Documentation
GetViewRowFromModelRow(Int32) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetViewRowFromModelRow(Int32) Method
Row index in model
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

Reference

SheetView Class
SheetView Members