Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / Column Class / AutoSortIndex Property

In This Topic
    AutoSortIndex Property (Column)
    In This Topic
    Gets or sets the automatic sort index for the column.
    Public Property AutoSortIndex As Integer
    Dim instance As Column
    Dim value As Integer
    instance.AutoSortIndex = value
    value = instance.AutoSortIndex
    public int AutoSortIndex {get; set;}
    This example sets the AutoSortIndex property.
    FarPoint.Win.Spread.ColumnHeader ch;
    ch = fpSpread1.ActiveSheet.ColumnHeader;
    ch.RowCount = 3;
    fpSpread1.ActiveSheet.Columns[0].AllowAutoSort = true;
    fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
    fpSpread1.ActiveSheet.Columns[0].AutoSortIndex = 1;
    Dim ch As FarPoint.Win.Spread.ColumnHeader
    ch = FpSpread1.ActiveSheet.ColumnHeader
    ch.RowCount = 3
    FpSpread1.ActiveSheet.Columns(0).AllowAutoSort = True
    FpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment"
    FpSpread1.ActiveSheet.Columns(0).AutoSortIndex = 1
    See Also