Articles in this section

What is the use of the SetDirty method in WinForms Calculate?

The SetDirty method recalculates all the formulas once again in the CalcQuick. This method is mainly used for performing the calculations when the formula’s argument values are changed. So, the SetDirty method needs to be called for every calculation.

For more details, refer the given link: About CalcQuickBase

The following screenshots are provided for better understanding,

Calculations without SetDirty


Default calculation

Figure 1: Initial Calculation

Calulate without calling SetDirty()

Figure 2: Value 2 has been changed


Calculating with SetDirty

 

Calulate with SetDirty()

Figure 3: Output

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied