Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / ColumnHeader Property
Example


In This Topic
    ColumnHeader Property (SheetView)
    In This Topic
    Gets the column headers for the sheet.
    Syntax
    'Declaration
     
    Public ReadOnly Property ColumnHeader As ColumnHeader
    'Usage
     
    Dim instance As SheetView
    Dim value As ColumnHeader
     
    value = instance.ColumnHeader
    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.
    FarPoint.Web.Spread.SheetView sv;
    sv = FpSpread1.ActiveSheetView;
    sv.ColumnHeader.RowCount = 3;
    if(IsPostBack)
    {
    sv.ColumnHeaderAutoTextIndex = 0;
    }
    
    Dim sv As FarPoint.Web.Spread.SheetView
    sv = FpSpread1.ActiveSheetView
    sv.ColumnHeader.RowCount = 3
    If IsPostBack Then
    sv.ColumnHeaderAutoTextIndex = 0
    End If
    See Also