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


child
Child view for which to set whether it is visible
visible
Whether to display the child view

Glossary Item Box

Sets whether to display the child view in a hierarchical display.

Syntax

Visual Basic (Declaration) 
Public Sub SetChildVisible( _
   ByVal child As SheetView, _
   ByVal visible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim child As SheetView
Dim visible As Boolean
 
instance.SetChildVisible(child, visible)
C# 
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.
C#Copy Code
FarPoint.Web.Spread.SheetView sv, svc;
sv = FpSpread1.ActiveSheetView;
svc = sv.GetChildView(1, 0);
sv.SetChildVisible(svc, true);
Visual BasicCopy Code
Dim sv, svc As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
svc = sv.GetChildView(1, 0)
sv.SetChildVisible(svc, True)

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.