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;
本文出自 “海的儿子” 博客,谢绝转载!
原文:http://4769069.blog.51cto.com/4759069/1975972