private void neuSpread1_AutoSortingColumn(object sender, FarPoint.Win.Spread.AutoSortingColumnEventArgs e)
{
//重写排序方法
e.Cancel = true;
FarPoint.Win.Spread.SortInfo[] sorter = new FarPoint.Win.Spread.SortInfo[1];
sorter[0] = new FarPoint.Win.Spread.SortInfo(e.Column, e.Ascending, System.Collections.Comparer.Default);
this.neuSpread1_Sheet1.SortRows(0, this.neuSpread1_Sheet1.Rows.Count - 1, sorter);
}
打印时需设置否则合计行打印不出来:
this.neuSpread1_Sheet1.PrintInfo.UseMax = false;
时间: 2024-10-29 03:45:44