FarPoint.Win.Spread
Visible Property
See Also  Example
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > RowHeader Class : Visible Property


Gets or sets whether the row header is visible.

Syntax

Visual Basic (Declaration) 
Public Property Visible As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RowHeader
Dim value As Boolean
 
instance.Visible = value
 
value = instance.Visible
C# 
public bool Visible {get; set;}

Return Value

Boolean: true to display the header; false otherwise

Example

This example hides the headers.
C#Copy Code
fpSpread1.ActiveSheet.ColumnHeader.RowCount = 3;

fpSpread1.ActiveSheet.RowHeader.ColumnCount = 3;
DialogResult dlg;
dlg = MessageBox.Show("Do you want to hide the headers?");

if (dlg == DialogResult.OK)
{
    
fpSpread1.ActiveSheet.ColumnHeader.Visible = false;
   
fpSpread1.ActiveSheet.RowHeader.Visible = false;
}
Visual BasicCopy Code
FpSpread1.ActiveSheet.ColumnHeader.RowCount = 3
FpSpread1.ActiveSheet.RowHeader.ColumnCount = 3
Dim dlg As DialogResult dlg = MessageBox.Show("Do you want to hide the headers?")
If dlg = DialogResult.OK Then
FpSpread1.ActiveSheet.ColumnHeader.Visible = False
FpSpread1.ActiveSheet.RowHeader.Visible = False
End If

Remarks

Set the ColumnHeader Visible property to manage the display of column headers.

To allow printing of the row header, use the ShowRowHeader property in the PrintInfo class.

See Also