Spread for ASP.NET 7.0 Product Documentation
AutoCalculation Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : AutoCalculation Property


Glossary Item Box

Gets or sets whether the control automatically recalculates each formula in the sheet when the contents of dependent cells change.

Syntax

Visual Basic (Declaration) 
Public Property AutoCalculation As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Boolean
 
instance.AutoCalculation = value
 
value = instance.AutoCalculation
C# 
public bool AutoCalculation {get; set;}

Property Value

Boolean: true for automatic recalculation; false otherwise

Example

This example sets the spreadsheet to recalculate each formula when the contents of dependent cells change.
C#Copy Code
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView();
FpSpread1.ActiveSheetView.SetValue(0, 0, 9);
FpSpread1.ActiveSheetView.SetValue(1, 0, 5);
FpSpread1.ActiveSheetView.SetFormula(2, 0, "SUM(A1,A2)");
sv = FpSpread1.ActiveSheetView;
if (IsPostBack)
{
    sv.AutoCalculation = true;
}
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
FpSpread1.ActiveSheetView.SetValue(0, 0, 9)
FpSpread1.ActiveSheetView.SetValue(1, 0, 5)
FpSpread1.ActiveSheetView.SetFormula(2, 0, "SUM(A1,A2)")
sv = FpSpread1.ActiveSheetView
If IsPostBack Then
    sv.AutoCalculation = True
End If

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Managing Formulas

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.