Spread Windows Forms 8.0 Product Documentation
ParentRowIndex Property (DefaultSheetDataModel)
Example 


Gets the index of the row in the parent data model associated with this child data model.
Syntax
'Declaration
 
Public ReadOnly Property ParentRowIndex As Integer
'Usage
 
Dim instance As DefaultSheetDataModel
Dim value As Integer
 
value = instance.ParentRowIndex
public int ParentRowIndex {get;}

Property Value

Integer row index of the parent
Example
This example returns the parent row index for the data model.
private void fpSpread1ChildViewCreated(object sender, FarPoint.Win.Spread.ChildViewCreatedEventArgs e) 
{
    FarPoint.Win.Spread.Model.DefaultSheetDataModel dm;
    dm = e.SheetView.Models.Data;
    int i;
    i = dm.ParentRowIndex;
    MessageBox.Show("The index of the parent row is " + i.ToString());
}
Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ChildViewCreatedEventArgs) Handles
fpSpread1.ChildViewCreated
    Dim dm As FarPoint.Win.Spread.Model.DefaultSheetDataModel
    dm = e.SheetView.Models.Data
    Dim i As Integer
    i = dm.ParentRowIndex
    MessageBox.Show("The index of the parent row is " & i.ToString())
End Sub
Requirements

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

See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members

 

 


Copyright © GrapeCity, inc. All rights reserved.