Spread Windows Forms 9.0 Product Documentation
Visible Property (ColumnHeader)
Example 


Gets or sets whether the column header is visible.
Syntax
'Declaration
 
Public Property Visible As Boolean
'Usage
 
Dim instance As ColumnHeader
Dim value As Boolean
 
instance.Visible = value
 
value = instance.Visible
public bool Visible {get; set;}

Property Value

Boolean: true to display the header; false otherwise
Remarks

Set the RowHeader Visible property to manage the display of row headers.

To allow printing of the column header, use the ShowColumnHeader property in the PrintInfo class.

Example
This example hides the headers.
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;
}
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ColumnHeader Class
ColumnHeader Members
Visible Property (RowHeader)
ShowColumnHeader Property (PrintInfo)

User-Task Documentation

Showing or Hiding Headers

 

 


Copyright © GrapeCity, inc. All rights reserved.