Spread for ASP.NET 9.0 Product Documentation
SortedColumn Property
Example 


Gets the model index of the column last sorted.
Syntax
'Declaration
 
Public ReadOnly Property SortedColumn As Integer
'Usage
 
Dim instance As SheetView
Dim value As Integer
 
value = instance.SortedColumn
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.
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());
}
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 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
Sort Method
SortColumns Method

User-Task Documentation

Customizing Sorting of Rows of User Data

 

 


Copyright © GrapeCity, inc. All rights reserved.