Spread for ASP.NET 10 Product Documentation
AutoCalculation Property (SheetView)
Example 


Gets or sets whether the control automatically recalculates each formula in the sheet when the contents of dependent cells change.
Syntax
'Declaration
 
Public Property AutoCalculation As Boolean
'Usage
 
Dim instance As SheetView
Dim value As Boolean
 
instance.AutoCalculation = value
 
value = instance.AutoCalculation
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.
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;
}
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Managing Formulas

 

 


Copyright © GrapeCity, inc. All rights reserved.