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


row
Row whose child sheet is to be created
relationIndex
Index to the data relation collection

Glossary Item Box

Gets a child sheet in a hierarchical display for the specified row and the specified relation index.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetChildView( _
   ByVal row As Integer, _
   ByVal relationIndex As Integer _
) As SheetView
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim relationIndex As Integer
Dim value As SheetView
 
value = instance.GetChildView(row, relationIndex)
C# 
public virtual SheetView GetChildView( 
   int row,
   int relationIndex
)

Parameters

row
Row whose child sheet is to be created
relationIndex
Index to the data relation collection

Return Value

Child SheetView object

Exceptions

ExceptionDescription
System.InvalidOperationException Specified sheet does not support a child view
System.ArgumentException Specified row is not valid; row index must be between 0 and the number of rows
System.ArgumentException Specified relation is not valid; relation index must be between 0 and the number of child relations in the collection

Example

This example gets the child sheet view with the specified row and data relation index.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.GetChildView(0, 0).BackColor = Color.Yellow;
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.GetChildView(0, 0).BackColor = Color.Yellow

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.