Spread for ASP.NET 7.0 Product Documentation
ColumnHeader Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ColumnHeader Property


Glossary Item Box

Gets the column headers for the sheet.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ColumnHeader As ColumnHeader
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As ColumnHeader
 
value = instance.ColumnHeader
C# 
public ColumnHeader ColumnHeader {get;}

Property Value

ColumnHeader object that contains column headers

Example

This example sets the sheet to have three rows of column headers and sets the first row to display the numbers.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.ColumnHeader.RowCount = 3;
if(IsPostBack)
{
sv.ColumnHeaderAutoTextIndex = 0;
}
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.ColumnHeader.RowCount = 3
If IsPostBack Then
sv.ColumnHeaderAutoTextIndex = 0
End If

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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