Spread ASP.NET 6.0 Product Documentation
GetChildView Method
See Also  Example Send Feedback
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.