那您用 SortRange.对您需要的区域进行排序
- FarPoint.Win.Spread.SortInfo[] sort = new FarPoint.Win.Spread.SortInfo[1];
- sort[0] = new FarPoint.Win.Spread.SortInfo(0, acc, System.Collections.Comparer.Default);
- acc = !acc;
- var rowCount = 3;
- fpSpread1.ActiveSheet.SortRange(0, 0, rowCount - 1, 4, true, sort);
复制代码
|