| Visual Basic (Declaration) | |
|---|---|
Public Sub SetColumnSortIndicator( _ ByVal column As Integer, _ ByVal order As SortIndicator _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public void SetColumnSortIndicator( int column, SortIndicator order ) | |
Parameters
- column
- Index of column to set
- order
- SortIndicator enumeration setting
This example illustrates the use of this member by returning the sort indicator for the specified column header.
| C# | Copy Code |
|---|---|
fpSpread1.ActiveSheet.SetColumnSortIndicator(0, FarPoint.Win.Spread.Model.SortIndicator.Descending); | |
| Visual Basic | Copy Code |
|---|---|
FpSpread1.ActiveSheet.SetColumnSortIndicator(0, FarPoint.Win.Spread.Model.SortIndicator.Descending) | |
The SheetView.SetColumnShowSortIndicator method and the Column.ShowSortIndicator property set whether the column shows the sort indicator the next time that the SheetView.AutoSortColumns method is called for that column. It has no effect until AutoSortColumns is called for that column index.
If you want to change the sort indicator shown for a column, use the SheetView.SetColumnSortIndicator method or the Column.SortIndicator property. These change the sort indicator in the column header and do not affect whether the column is sorted or not.