FarPoint.Win.Spread.Column col, col1, col2;
col = fpSpread1.ActiveSheet.Columns[0];
col.CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
col1 = fpSpread1.ActiveSheet.Columns[2];
col2 = fpSpread1.ActiveSheet.Columns[3];
fpSpread1.ActiveSheet.Cells[2, 3].Value = 10;
fpSpread1.ActiveSheet.Cells[2, 2].Value = 10;
col.Formula = "SUM(" + col1.ToString() + "," + col2.ToString() + ")";
Dim col, col1, col2 As FarPoint.Win.Spread.Column
col = fpSpread1.ActiveSheet.Columns(0)
col.CellType = New FarPoint.Win.Spread.CellType.NumberCellType()
col1 = fpSpread1.ActiveSheet.Columns(2)
col2 = fpSpread1.ActiveSheet.Columns(3)
fpSpread1.ActiveSheet.Cells(2, 3).Value = 10
fpSpread1.ActiveSheet.Cells(2, 2).Value = 10
col.Formula = "SUM(" + col1.ToString() + "," + col2.ToString() + ")"