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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.