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


child
Child view for which to return whether it is visible

Glossary Item Box

Gets whether the child view is displayed in a hierarchical display.

Syntax

Visual Basic (Declaration) 
Public Function GetChildVisible( _
   ByVal child As SheetView _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim child As SheetView
Dim value As Boolean
 
value = instance.GetChildVisible(child)
C# 
public bool GetChildVisible( 
   SheetView child
)

Parameters

child
Child view for which to return whether it is visible

Return Value

true if the child is displayed; otherwise, false

Remarks

If this method returns 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 returns if the specified child view is visible.
C#Copy Code
private void FpSpread1ChildViewCreated(object sender, FarPoint.Web.Spread.CreateChildViewEventArgs e)
{
    FarPoint.Web.Spread.SheetView sv;
    sv = e.SheetView;
    bool b;
    b = sv.GetChildVisible(e.SheetView);
    if (b)
    {
        Response.Write("The child is visible.");
    }
}
Visual BasicCopy Code
Private Sub FpSpread1ChildViewCreated(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.CreateChildViewEventArgs) Handles
FpSpread1.ChildViewCreated
    Dim sv As FarPoint.Web.Spread.SheetView
    Dim b As Boolean
    sv = e.SheetView
    b = sv.GetChildVisible(e.SheetView)
    If b Then
        Response.Write("The child is visible.")
    End If
End Sub

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.