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

In This Topic
    ColumnHeaderAutoTextIndex Property
    In This Topic
    Gets or sets which column header row displays the automatic text when there are multiple column header rows.
    Public Property ColumnHeaderAutoTextIndex As Integer
    Dim instance As SheetView
    Dim value As Integer
    instance.ColumnHeaderAutoTextIndex = value
    value = instance.ColumnHeaderAutoTextIndex
    public int ColumnHeaderAutoTextIndex {get; set;}

    Property Value

    Integer column header row index

    This property is available at run time only.

    If you have more than one row of columns, set this property to the number of the row in which you want the automatic text to appear.

    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;
    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