' Sorts all the rows in the sheet according to the values in the second column. The sort is in ascending order and the indicator is turned on. fpSpread1.ActiveSheet.SortRows(1,true,true)
// Sorts rows 12 to 230 using a predefined array of sort information. FarPoint.Win.Spread.SortInfo[] sorter = new FarPoint.Win.Spread.SortInfo[1]; sorter[0] = new FarPoint.Win.Spread.SortInfo(0, false, System.Collections.Comparer.Default); fpSpread1.ActiveSheet.SortColumns(12,230,sorter); ' Sorts rows 12 to 230 using a predefined array of sort information. Dim sorter(1) As FarPoint.Win.Spread.SortInfo sorter(0) = New FarPoint.Win.Spread.SortInfo(0, False, System.Collections.Comparer.Default) fpSpread1.ActiveSheet.SortColumns(12,230,sorter);
// Automatically sort the first column. fpSpread1.ActiveSheet.SetColumnAllowAutoSort(0, true); fpSpread1.ActiveSheet.SetColumnShowSortIndicator(0, false); fpSpread1.ActiveSheet.AutoSortColumn(0); ' Automatically sort the first column. fpSpread1.ActiveSheet.SetColumnAllowAutoSort(0, True) fpSpread1.ActiveSheet.SetColumnShowSortIndicator(0, False) fpSpread1.ActiveSheet.AutoSortColumn(0)
// Allow automatic sorting for the first 30 columns. fpSpread1.Sheets[0].Columns[0,29].AllowAutoSort = true; ' Allow automatic sorting for the first 30 columns. FpSpread1.Sheets(0).Columns(0,29).AllowAutoSort = True