Spread for ASP.NET 7.0 Product Documentation
ParentRowIndex Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ParentRowIndex Property


Glossary Item Box

Gets the index of the parent row in a hierarchical display.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property ParentRowIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Integer
 
value = instance.ParentRowIndex
C# 
public virtual int ParentRowIndex {get;}

Property Value

Integer parent row index

Remarks

This property is available at run time only.

Example

This example returns the parent row index.
C#Copy Code
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();
}
Visual BasicCopy Code
Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateChildViewEventArgs) Handles
FpSpread1.ChildViewCreated
Dim s As String
Dim i As Integer
i = e.SheetView.ParentRowIndex
TextBox1.Text = "The parent row index is " & i.ToString()
End Sub

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.