Spread for ASP.NET 8.0 Product Documentation
GetChildView Method
Example 


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
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.
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
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

Reference

SheetView Class
SheetView Members

User-Task Documentation

Displaying Data as a Hierarchy

 

 


Copyright © GrapeCity, inc. All rights reserved.