Spread for ASP.NET 7.0 Product Documentation
SortAscendingImage Field
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : SortAscendingImage Field


Glossary Item Box

Specifies the identifier for the image for the sort indicator (for ascending sorts) in the component.

Syntax

Visual Basic (Declaration) 
Public Const SortAscendingImage As Integer
Visual Basic (Usage)Copy Code
Dim value As Integer
 
value = FpSpread.SortAscendingImage
C# 
public const int SortAscendingImage

Field Value

Integer identifier for the descending sort indicator image, 2

Remarks

This is always set to 2. For the SetImage method, you can either use the full name of this field or the constant value of 2 to identify the ascending sort image.

Any of several parts of the graphical interface of the component can be customized. This one identifies the sort indicator for ascending sorting. Refer to Customizing the Graphical Interface for more information.

Example

C#Copy Code
int i, j;
for (i = 0; i<= FpSpread1.ActiveSheetView.RowCount; i++) 
{
    for (j = 0; j<= FpSpread1.ActiveSheetView.ColumnCount; j++) 
        FpSpread1.ActiveSheetView.SetValue(i, j, i + j);
}

FpSpread1.ActiveSheetView.AllowSort = true;
FpSpread1.ActiveSheetView.SortRows(1, true, true, System.Collections.Comparer.Default);

if(!IsPostBack)
{
    FpSpread1.SetImage(FarPoint.Web.Spread.FpSpread.SortAscendingImage, "D:\\up.gif");
    FpSpread1.SetImage(FarPoint.Web.Spread.FpSpread.SortDescendingImage, "D:\\down.gif"); 
}
Visual BasicCopy Code
Dim i, j As Integer
For i = 0 To FpSpread1.ActiveSheetView.RowCount
    For j = 0 To FpSpread1.ActiveSheetView.ColumnCount
        FpSpread1.ActiveSheetView.SetValue(i, j, i + j)
    Next j
Next i

FpSpread1.ActiveSheetView.AllowSort = True

FpSpread1.ActiveSheetView.SortRows(1, True, True, System.Collections.Comparer.Default)

If Not IsPostBack Then
    FpSpread1.SetImage(FarPoint.Web.Spread.FpSpread.SortAscendingImage, "D:\up.gif") 
    FpSpread1.SetImage(FarPoint.Web.Spread.FpSpread.SortDescendingImage, "D:\down.gif")
End If

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.