FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : AllowSort Property |
'Declaration Public Property AllowSort As Boolean
'Usage Dim instance As SheetView Dim value As Boolean instance.AllowSort = value value = instance.AllowSort
public bool AllowSort {get; set;}
When this property is set to true, users can double-click a column header cell to sort all the rows of a sheet according to the values in that column. Typically, a sort indicator displays in that header cell. For more information on the operation of sorting columns and rows in a sheet, refer to Customizing Sorting of Rows of User Data.
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView(); FpSpread1.ActiveSheetView.SetValue(0, 0, 9); FpSpread1.ActiveSheetView.SetValue(1, 0, 5); FpSpread1.ActiveSheetView.SetValue(2, 0, 7); sv = FpSpread1.ActiveSheetView; if (IsPostBack) { sv.AllowSort = true; }
Dim sv As FarPoint.Web.Spread.SheetView FpSpread1.ActiveSheetView.SetValue(0, 0, 9) FpSpread1.ActiveSheetView.SetValue(1, 0, 5) FpSpread1.ActiveSheetView.SetValue(2, 0, 7) sv = FpSpread1.ActiveSheetView If IsPostBack Then sv.AllowSort = True End If
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional
SheetView Class
SheetView Members
GetColumnSortIndicator Method
SetColumnSortIndicator Method
Sort Method