回复 1楼p332718873的帖子
请通过以下代码测试:
- public MainPage()
- {
- InitializeComponent();
- this.gcSpreadSheet1.AutoRecalculation = true;
- this.gcSpreadSheet1.CanUserEditFormula = true;
- this.gcSpreadSheet1.AutoRefresh = true;
- for (int i = 0; i < 10; i++)
- {
- this.gcSpreadSheet1.ActiveSheet.Cells[i, 0].Value = Convert.ToInt32((((i + 1) * 2).ToString()));
- }
- this.gcSpreadSheet1.ActiveSheet.Cells[0, 1].Formula = "SUM(A1:A5)";
- }
复制代码 |