Posted 9 November 2020, 6:10 am EST - Updated 30 September 2022, 12:01 pm EST
How to set a formula as the following image
Posted by: malishin on 9 November 2020, 6:10 am EST
-
-
Posted 12 November 2020, 4:38 am EST
Hi,
In order to apply formula on a column such that it displays sum of the row values in other two columns, you can use the following code snippet:
fpSpread1.SetRefStyle (RefStyleA1) fpSpread1.AutoCalc = True fpSpread1.AllowUserFormulas = True fpSpread1.Col = 3 'index of the column in which the formula is to be set fpSpread1.CellType = CellTypeNumber fpSpread1.Formula = "SUM(A1:B1)"
Please refer to the attached sample implementing the same.
Thanks,
Pragati -
Posted 16 November 2020, 12:31 am EST
Thanks Pragati