Why formulas are not updated when inserting rows in WinForms Excel?
This issue happens not because of inserting the rows. if the sheet has the range that refers to a single cell [For eg:SUM(B2:B2)] then formulas cannot be updated. This is the default behavior of MS Excel. This can be solved by changing range reference in your template file as follows:
- Insert a new row.
- Then Change the formula. Say, "SUM(B2:B3)" instead of using "SUM(B2:B2)"
- Also you can delete the unwanted rows after updating the formulas.
The below link has the sample with the changed template file:
I hope you enjoyed learning about why formulas are not updated when inserting rows in WinForms Excel.
You can refer to our WinForms Excel feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WinForms Excel example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!