Spread ASP.NET 6.0 Product Documentation
SortedColumn Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SortedColumn Property


Glossary Item Box

Gets the index of the column last sorted.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property SortedColumn As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Integer
 
value = instance.SortedColumn
C# 
public int SortedColumn {get;}

Property Value

Integer column index

Remarks

This property is available at run time only.

Example

This example returns the index of the last sorted column.
C#Copy Code
private void FpSpread1SortColumnCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
FarPoint.Web.Spread.SheetView sv;
sv = e.SheetView;
Response.Write("The column sorted was " + sv.SortedColumn.ToString());
}
Visual BasicCopy Code
Private Sub FpSpread1SortColumnCommand(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles
FpSpread1.SortColumnCommand
Dim sv As FarPoint.Web.Spread.SheetView
sv = e.SheetView
Response.Write("The column sorted was " & sv.SortedColumn.ToString())
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.