Spread for ASP.NET 11 Product Documentation
GetChildView Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetChildView Method
Row whose child sheet is to be created
Index to the data relation collection
Gets a child sheet in a hierarchical display for the specified row and the specified relation index.
Syntax
'Declaration
 
Public Overridable Function GetChildView( _
   ByVal row As Integer, _
   ByVal relationIndex As Integer _
) As SheetView
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim relationIndex As Integer
Dim value As SheetView
 
value = instance.GetChildView(row, relationIndex)
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
Specified sheet does not support a child view
Specified row is not valid; row index must be between 0 and the number of rows
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.
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.GetChildView(0, 0).BackColor = Color.Yellow;
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.GetChildView(0, 0).BackColor = Color.Yellow
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Displaying Data as a Hierarchy