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


row
Row index

Glossary Item Box

Gets whether the row is expanded in the hierarchical display.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsRowExpanded( _
   ByVal row As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim value As Boolean
 
value = instance.IsRowExpanded(row)
C# 
public virtual bool IsRowExpanded( 
   int row
)

Parameters

row
Row index

Return Value

true if the row is expanded; otherwise false

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException Specified row is out of range; must be between 0 and the number of rows

Example

This example returns whether the specified row is expanded.
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.IsRowExpanded(1);
      Response.Write("The row is expanded is " + b.ToString())
}
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
      sv = e.SheetView
      Dim b As Boolean
      b = sv.IsRowExpanded(1)
      Response.Write("The row is expanded is " & b.ToString())
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.