We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Formula Calculation

Thread ID:





12654 Apr 6,2004 01:48 PM Apr 6,2004 06:02 PM Windows Forms 2
Tags: GridControl
Greg Wright
Asked On April 6, 2004 01:48 PM

I am having a problem with a formula calculating after I insert a column (using InsertRange). Even if I reset the formula, it still won''t work. The attached sample shows an example. When the form first loads, the formula works fine. If the button is clicked (which adds a column using InsertRange), the value of the formula cell doesn''t change when any of its dependent cells is changed. Am I doing something wrong, or is this a DirectTrac issue? FYI: I am running 1.6.1. Thanks, Greg GridFormulaTest_2962.zip

Greg Wright
Replied On April 6, 2004 02:20 PM

Do I need to call ResetFormulaTag()?

Administrator [Syncfusion]
Replied On April 6, 2004 06:02 PM

In 1.6.1, resetting the formulatag does seem to avoid the problem. In 2030, you can clear a couple of hashtables and recalculate things without having to visit each cell trying to reset the formulatag. Here is code that seemed to avoid teh problem in 1610 for me. this.gridControl1.Model.Cols.InsertRange(this.FormulaCol, 1); this.gridControl1[1,4].ResetFormulaTag();


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.