Spread for ASP.NET 7.0 Product Documentation
SetColumnSortIndicator Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetColumnSortIndicator Method


column
Column index
order
SortIndicator enumeration

Glossary Item Box

Sets the sort indicator to display at the specified column.

Syntax

Visual Basic (Declaration) 
Public Sub SetColumnSortIndicator( _
   ByVal column As Integer, _
   ByVal order As SortIndicator _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim order As SortIndicator
 
instance.SetColumnSortIndicator(column, order)
C# 
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.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
sv.AllowSort = true;
sv.SetColumnSortIndicator(1, FarPoint.Web.Spread.Model.SortIndicator.Descending);
Visual BasicCopy Code
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 Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.