Spread Windows Forms 10.0 Product Documentation
SortState Property
Example 


Gets or sets the sorting state.
Syntax
'Declaration
 
Public Property SortState As SortState
'Usage
 
Dim instance As Appearance
Dim value As SortState
 
instance.SortState = value
 
value = instance.SortState
public SortState SortState {get; set;}

Property Value

SortState setting that specifies the state of the sorting (so the column renderer knows which sorting image to draw)
Remarks
This property helps the column header renderer know what sorting image to display in the column header.
Example
This example customizes the appearance object.
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(); 
appr.DisplayZero = false; 
appr.FilterState = FilterState.None; 
appr.MouseOver = true; 
appr.RightToLeft = false; 
appr.ShowActive = true; 
appr.SortState = SortState.None; 
appr.VisualStyles = FarPoint.Win.VisualStyles.On; 
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.SetAppearance(appr); 
fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si);
Dim appr As New FarPoint.Win.Spread.Appearance()
appr.DisplayZero = False
appr.FilterState = FilterState.None
appr.MouseOver = True
appr.RightToLeft = False
appr.ShowActive = True
appr.SortState = SortState.None
appr.VisualStyles = FarPoint.Win.VisualStyles.On
Dim si As New FarPoint.Win.Spread.StyleInfo
si.SetAppearance(appr)
FpSpread1.ActiveSheet.SetStyleInfo(0, 0, si)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

Appearance Class
Appearance Members
SortState Enum

User-Task Documentation

Managing Sorting

 

 


Copyright © GrapeCity, inc. All rights reserved.