Spread Windows Forms 9.0 Product Documentation
AutoSortIndex Property (Column)
Example 


Gets or sets the automatic sort index for the column.
Syntax
'Declaration
 
Public Property AutoSortIndex As Integer
'Usage
 
Dim instance As Column
Dim value As Integer
 
instance.AutoSortIndex = value
 
value = instance.AutoSortIndex
public int AutoSortIndex {get; set;}
Example
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.