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


row
Row index
visible
Whether to display the row

Glossary Item Box

Sets whether a row on this sheet is displayed.

Syntax

Visual Basic (Declaration) 
Public Sub SetRowVisible( _
   ByVal row As Integer, _
   ByVal visible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim visible As Boolean
 
instance.SetRowVisible(row, visible)
C# 
public void SetRowVisible( 
   int row,
   bool visible
)

Parameters

row
Row index
visible
Whether to display the row

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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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