Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / ParentRowIndex Property

In This Topic
    ParentRowIndex Property (SheetView)
    In This Topic
    Gets the index of the parent row in a hierarchical display.
    Public Overridable ReadOnly Property ParentRowIndex As Integer
    Dim instance As SheetView
    Dim value As Integer
    value = instance.ParentRowIndex
    public virtual int ParentRowIndex {get;}

    Property Value

    Integer parent row index
    This property is available at run time only.
    This example returns the parent row index.
    private void fpSpread1ChildViewCreated1(object sender, FarPoint.Web.Spread.ChildViewCreatedEventArgs e)
    string s;
    int i;
    i = e.SheetView.ParentRowIndex;
    TextBox1.Text = "The parent row index is " + i.ToString();
    Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateChildViewEventArgs) Handles
    Dim s As String
    Dim i As Integer
    i = e.SheetView.ParentRowIndex
    TextBox1.Text = "The parent row index is " & i.ToString()
    End Sub
    See Also