Sets the row index in the data model that corresponds to the specified row index in the sheet.
'Declaration
Public Overridable Function SetModelRowForViewRow( _
ByVal As Integer, _
ByVal As Integer _
) As Integer
'Usage
Dim instance As SheetView
Dim viewRow As Integer
Dim modelRow As Integer
Dim value As Integer
value = instance.SetModelRowForViewRow(viewRow, modelRow)
public virtual int SetModelRowForViewRow(
int ,
int
)
Parameters
- viewRow
- Row index in the sheet
- modelRow
- Row index in the data model
Return Value
Integer previous row index in the data model that is mapped to the specified row index in the sheet
This example sets the model row index in the data model that corresponds to the specified view row index on the sheet.
private void fpSpread1LeaveCell(object sender, FarPoint.Win.Spread.LeaveCellEventArgs e)
{
int i;
i = fpSpread1.ActiveSheet.SetModelRowForViewRow(e.Row, 1);
MessageBox.Show("The previous model row index mapped to the specified view row is row " + i.ToString());
}
Private Sub FpSpread1LeaveCell(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.LeaveCellEventArgs) Handles FpSpread1.LeaveCell
Dim i As Integer
i = FpSpread1.ActiveSheet.SetModelRowForViewRow(e.Row, 1)
MessageBox.Show("The previous model row index mapped to the specified view row is row " & i.ToString())
End Sub
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