Spread Windows Forms 6.0 Product Documentation
GetRowVisible Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetRowVisible Method


row
Row index

Glossary Item Box

Gets whether a row on this sheet is displayed.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetRowVisible( _
   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.GetRowVisible(row)
C# 
public virtual bool GetRowVisible( 
   int row
)

Parameters

row
Row index

Return Value

Boolean: true if the row is displayed; false otherwise

Example

This example illustrates the use of this member by returning whether a row is visible.
C#Copy Code
DialogResult dlg; 
bool b;
dlg = MessageBox.Show("Do you want to hide the first row?", "Get/SetRowVisible", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
    fpSpread1.ActiveSheet.SetRowVisible(0, false);
    b = fpSpread1.ActiveSheet.GetRowVisible(0);
    label1.Text = "Get/SetRowVisible for row 0 = " + b.ToString();
}
Visual BasicCopy Code
Dim dlg As DialogResult
Dim b As Boolean
dlg = MessageBox.Show("Do you want to hide the first row?", "Get/SetrowVisible", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
    FpSpread1.ActiveSheet.SetRowVisible(0, False)
    b = FpSpread1.ActiveSheet.GetRowVisible(0)
    Label1.Text = "Get/SetRowVisible for row 0 = " & b.ToString()
End If

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.