在论坛上找到了其他控件的
// Show the column footer.
fpSpread1.Sheets[0].ColumnFooter.Visible = true;
fpSpread1.Sheets[0].ColumnFooter.RowCount = 2;
fpSpread1.Sheets[0].ColumnFooter.DefaultStyle.ForeColor = Color.Purple;
fpSpread1.Sheets[0].ColumnFooter.Columns[12].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 12].RowSpan = 2;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 0].Value = "sum";
fpSpread1.Sheets[0].ColumnFooter.SetAggregationType(1, 0, FarPoint.Win.Spread.Model.AggregationType.Sum);
这个刚好是我要得功能,想知道C1Flexgrid代码是如何实现的?
|
|