回复 1楼wangfabei1989的帖子
可以使用 ColumnFooter 实现汇总行功能:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.ActiveSheet.Cells[0, 0].Value = 10;
- this.fpSpread1.ActiveSheet.Cells[1, 0].Value = 10;
- this.fpSpread1.ActiveSheet.ColumnFooter.Visible = true;
- int rowCount = this.fpSpread1.ActiveSheet.RowCount;
- fpSpread1.Sheets[0].ColumnFooter.SetAggregationType(0, 0, FarPoint.Win.Spread.Model.AggregationType.Sum);
- }
复制代码 |