Spread for ASP.NET 9.0 Product Documentation
SetColumnSortIndicator Method
Example 


Column index
SortIndicator enumeration
Sets the sort indicator to display at the specified column.
Syntax
'Declaration
 
Public Sub SetColumnSortIndicator( _
   ByVal column As Integer, _
   ByVal order As SortIndicator _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim order As SortIndicator
 
instance.SetColumnSortIndicator(column, order)
public void SetColumnSortIndicator( 
   int column,
   SortIndicator order
)

Parameters

column
Column index
order
SortIndicator enumeration
Remarks
This method uses the SortIndicator enumeration.
Example
This example illustrates the use of this member by setting specified sort indicator in the column header.
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.AllowSort = true;
sv.SetColumnSortIndicator(1, FarPoint.Web.Spread.Model.SortIndicator.Descending);
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
sv.AllowSort = True
sv.SetColumnSortIndicator(1, FarPoint.Web.Spread.Model.SortIndicator.Descending)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
SortIndicator Enumeration

User-Task Documentation

Customizing Sorting of Rows of User Data

 

 


Copyright © GrapeCity, inc. All rights reserved.