Spread for ASP.NET 11 Product Documentation
SetChildVisible Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetChildVisible Method
Child view for which to set whether it is visible
Whether to display the child view
Sets whether to display the child view in a hierarchical display.
Syntax
'Declaration
 
Public Sub SetChildVisible( _
   ByVal child As SheetView, _
   ByVal visible As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim child As SheetView
Dim visible As Boolean
 
instance.SetChildVisible(child, visible)
public void SetChildVisible( 
   SheetView child,
   bool visible
)

Parameters

child
Child view for which to set whether it is visible
visible
Whether to display the child view
Remarks
If the visible parameter is set to true and the parent row of the child view is expanded, the child view is displayed. Otherwise, the child view is not displayed.
Example
This example sets whether to display the child view.
FarPoint.Web.Spread.SheetView sv, svc;
sv = FpSpread1.ActiveSheetView;
svc = sv.GetChildView(1, 0);
sv.SetChildVisible(svc, true);
Dim sv, svc As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
svc = sv.GetChildView(1, 0)
sv.SetChildVisible(svc, True)
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Displaying Data as a Hierarchy