[]
By default, Spread displays column headers and row headers. If you prefer, you can turn them off, and hide from view the row headers or column headers or both. The following figure shows a sheet that displays only column headers and hides the row headers.
If the sheet has multiple headers, using these instructions to hide the headers hides all header rows or header columns or both. If you want to hide specific rows or columns within a header, you must specify the row or column. For more details on hiding specific rows or columns, refer to Showing or Hiding a Row or Column.
The display of headers is done by simply setting a visible property of the header. This can be done in code with any of these properties:
Property | Descriptions |
---|---|
Visible property of RowHeader class or RowHeaderVisible property of SheetViewclass | Set True to show the row header and False to hide the row header. |
Visible property of ColumnHeader class or ColumnHeaderVisible property of SheetView class | Set True to show the column header and False to hide the column header. |
At design time, in the Properties window, select the Spread component.
Select the Sheets property.
Click the button to display the SheetView Collection Editor.
Click the sheet for which you want to change the header display.
Set the ColumnHeaderVisible or RowHeaderVisible property to false to turn off the display of the header.
Click OK to close the editor.
Set the ColumnHeaderVisible or RowHeaderVisible property for a Sheets object or the Visible property of the ColumnHeader or RowHeader object.
This example turns off the display of the column header. You can use either line of code.
// Turn off the display of column headers.
fpSpread1.Sheets[0].ColumnHeaderVisible = false;
fpSpread1.Sheets[0].ColumnHeader.Visible = false;
' Turn off the display of column headers.
fpSpread1.Sheets(0).ColumnHeaderVisible = False
fpSpread1.Sheets(0).ColumnHeader.Visible = False
Select the sheet tab for the sheet for which you want to turn off header display.
In the properties list, in the Appearance category, double-click the ColumnHeader or RowHeader property to display the properties for the column or row header.
Set the Visible property to False to turn off the header display.
From the File menu choose Apply and Exit to apply your changes to the component and exit Spread Designer.
Setting the Height or Width of Header
Customizing the Appearance of Headers