Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / SortedColumn Property

In This Topic
    SortedColumn Property
    In This Topic
    Gets the model index of the column last sorted.
    Public ReadOnly Property SortedColumn As Integer
    Dim instance As SheetView
    Dim value As Integer
    value = instance.SortedColumn
    public int SortedColumn {get;}

    Property Value

    Integer column index
    This property is available at run time only.
    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
    Dim sv As FarPoint.Web.Spread.SheetView
    sv = e.SheetView
    Response.Write("The column sorted was " & sv.SortedColumn.ToString())
    End Sub
    See Also